SOLVED
Home

Clone a team issue

%3CLINGO-SUB%20id%3D%22lingo-sub-235864%22%20slang%3D%22en-US%22%3EClone%20a%20team%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-235864%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EMy%20goal%20is%20to%20clone%20a%20team.%20I'm%20doing%20it%20in%20Azure%20function%20using%20Graph%20API%20(%3C%2FSPAN%3E%3CSPAN%3EPOST%20beta%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSPAN%3Eteams%3C%2FSPAN%3E%3CSPAN%3E%2F%7B%3C%2FSPAN%3E%3CSPAN%3Eid%3C%2FSPAN%3E%3CSPAN%3E%7D%2F%3C%2FSPAN%3E%3CSPAN%3Eclone).%20According%20to%20Microsoft%20documentation%20the%20only%20way%20to%20use%20this%20API%20is%20through%20the%20%22Delegated%22%20permission.%20I%20have%20an%20Azure%20app%20setup%20that%20has%20all%20delegated%20permissions%20to%20the%20Graph%20API%2C%20I'm%20using%20this%20app%20(AppId%20and%20secret)%20plus%20user's%20credentials%20to%20get%20a%20token%20via%20oath2.0%20pattern%20(after%20token%20acquired%20I%20can%20see%20that%20it%20has%20all%20needed%20permissions).%20Unfortunately%20when%20I%20run%20clone%20API%20I%20get%20a%20%22Access%20Denied.%20%3C%2FSPAN%3E%3CSPAN%3EFailed%20to%20execute%20Skype%20backend%20request%20GetThreadRequest.%3C%2FSPAN%3E%3CSPAN%3E%22%20error.%20I%20can%20run%20GETgroup%20API%20and%20GET%20user%20API%20without%20any%20issues.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ELooking%20for%20advice.%20Thank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-235864%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-240572%22%20slang%3D%22en-US%22%3ERe%3A%20Clone%20a%20team%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-240572%22%20slang%3D%22en-US%22%3EMy%20issue%20has%20been%20resolved.%20We%20found%20out%20that%20some%20time%20ago%20PowerShell%20command%20was%20executed%20to%20take%20away%20permission%20to%20create%20Teams%20from%20all%20users%20in%20the%20organization%2C%20accept%20for%20users%2C%20who%20were%20part%20of%20the%20specified%20admin%20group.%20After%20this%20setting%20was%20reversed%2C%20clone%20API%20started%20to%20work.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-810721%22%20slang%3D%22en-US%22%3ERe%3A%20Clone%20a%20team%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810721%22%20slang%3D%22en-US%22%3EHi%20Alex%3CBR%20%2F%3E%3CBR%20%2F%3Ewould%20you%20please%20elaborate%20further%3CBR%20%2F%3EI%20am%20trying%20to%20clone%20team%20that%20contains%20several%20apps%20like%20planner%2C%20ppt%2C%20sharepoint%20however%20I%20keep%20receiving%20this%20error%3C%2FLINGO-BODY%3E
Alex Zakhodin
Occasional Contributor

My goal is to clone a team. I'm doing it in Azure function using Graph API (POST beta/teams/{id}/clone). According to Microsoft documentation the only way to use this API is through the "Delegated" permission. I have an Azure app setup that has all delegated permissions to the Graph API, I'm using this app (AppId and secret) plus user's credentials to get a token via oath2.0 pattern (after token acquired I can see that it has all needed permissions). Unfortunately when I run clone API I get a "Access Denied. Failed to execute Skype backend request GetThreadRequest." error. I can run GETgroup API and GET user API without any issues.

 

Looking for advice. Thank you.

2 Replies
Highlighted
Solution
My issue has been resolved. We found out that some time ago PowerShell command was executed to take away permission to create Teams from all users in the organization, accept for users, who were part of the specified admin group. After this setting was reversed, clone API started to work.
Hi Alex

would you please elaborate further
I am trying to clone team that contains several apps like planner, ppt, sharepoint however I keep receiving this error
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies