Home

Error Creating Microsoft Team with Graph

%3CLINGO-SUB%20id%3D%22lingo-sub-722569%22%20slang%3D%22en-US%22%3EError%20Creating%20Microsoft%20Team%20with%20Graph%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722569%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20some%20code%20that%20started%20having%20issues%20in%20the%20last%20couple%20weeks.%20I%20am%20able%20with%20application%20permissions%20to%20create%20an%20Office%20365%20Group.%20When%20I%20try%20to%20run%20the%20Graph%20call%20to%20add%20a%20Microsoft%20Team%20to%20the%20group%20I%20am%20getting%20the%20following%20error.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EFailed%20to%20execute%20Aad%20backend%20request%20GetTenantSubscribedSkusRequest.%20Request%20Url%3A%20https%3A%2F%2Fgraph.windows.net%2F%7BTENANTID%7D%2FsubscribedSkus%3Fapi-version%3D1.6%2C%20Request%20Method%3A%20GET%2C%20Response%20Status%20Code%3A%20Unauthorized%2C%20Response%20Headers%3A%20ocp-aad-diagnostics-server-name%3A%20%2BEOS4aiuOEFJVZdbhjMw16%2F%2BoK92lidT3YUz%2BJU856Q%3D%0Arequest-id%3A%205e6ed525-6b55-49be-841f-cd2d29a91793%0Aclient-request-id%3A%20cd4049d9-1a5e-4282-b6e9-e74d89ade546%0AStrict-Transport-Security%3A%20max-age%3D31536000%3B%20includeSubDomains%0ADate%3A%20Wed%2C%2026%20Jun%202019%2018%3A15%3A53%20GMT%3C%2FPRE%3E%0A%3CP%3EI%20have%20found%2C%20through%20testing%2C%20that%20if%20I%20create%20a%20team%20using%20the%20Graph%20Explorer%20on%20the%20created%20group%20or%20if%20I%20create%20a%20team%20through%20the%20Teams%20UI%20that%20my%20code%20will%20start%20working%20for%2024%20hours%20and%20then%20I%20start%20getting%20the%20same%20error%20again.%20It%20seems%20to%20me%20like%20there%20is%20something%20wrong%20with%20the%20setup%20of%20application%20permissions%20in%20the%20Teams%20Graph%20API.%20Any%20help%20would%20be%20appreciated.%20Having%20to%20have%20a%20user%20manually%20create%20a%20team%20once%20every%2024%20hours%20to%20make%20my%20code%20work%20is%20not%20an%20ideal%20scenario.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-736705%22%20slang%3D%22en-US%22%3ERE%3A%20Error%20Creating%20Microsoft%20Team%20with%20Graph%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-736705%22%20slang%3D%22en-US%22%3EHi%20Ryan%20-%20I%20suggest%20referring%20this%20questing%20to%20the%20Teams%20TechCommunity%3C%2FLINGO-BODY%3E
Ryan Schouten
MVP

I am working on some code that started having issues in the last couple weeks. I am able with application permissions to create an Office 365 Group. When I try to run the Graph call to add a Microsoft Team to the group I am getting the following error.

 

Failed to execute Aad backend request GetTenantSubscribedSkusRequest. Request Url: https://graph.windows.net/{TENANTID}/subscribedSkus?api-version=1.6, Request Method: GET, Response Status Code: Unauthorized, Response Headers: ocp-aad-diagnostics-server-name: +EOS4aiuOEFJVZdbhjMw16/+oK92lidT3YUz+JU856Q=
request-id: 5e6ed525-6b55-49be-841f-cd2d29a91793
client-request-id: cd4049d9-1a5e-4282-b6e9-e74d89ade546
Strict-Transport-Security: max-age=31536000; includeSubDomains
Date: Wed, 26 Jun 2019 18:15:53 GMT

I have found, through testing, that if I create a team using the Graph Explorer on the created group or if I create a team through the Teams UI that my code will start working for 24 hours and then I start getting the same error again. It seems to me like there is something wrong with the setup of application permissions in the Teams Graph API. Any help would be appreciated. Having to have a user manually create a team once every 24 hours to make my code work is not an ideal scenario.

1 Reply
Hi Ryan - I suggest referring this questing to the Teams TechCommunity
Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies