Home

Graph API access Teams App Only Permissions not allowed

%3CLINGO-SUB%20id%3D%22lingo-sub-178693%22%20slang%3D%22en-US%22%3EGraph%20API%20access%20Teams%20App%20Only%20Permissions%20not%20allowed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-178693%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20created%20a%20flow%20that%20connects%20to%20the%20Grap%20API%20and%20create%20a%20Office%20365%20Group.%20The%20connection%20to%20Graph%20is%20based%20on%20Azure%20AD%20App%20with%20App%20only%20permissions.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECreation%20of%20Groups%20works%20without%20any%20problems.%20Now%20I%20also%20want%20to%20create%20a%20Team%20for%20the%20Group%20but%20I%20get%20the%20following%20error%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22mtk1%22%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%3CSPAN%20class%3D%22mtk20%22%3E%22error%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%3A%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk20%22%3E%22code%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk5%22%3E%22InvalidRequest%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk20%22%3E%22message%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk5%22%3E%22Calling%26nbsp%3Bthis%26nbsp%3BAPI%26nbsp%3Busing%26nbsp%3BMSGraph%26nbsp%3BApplication%26nbsp%3BPermis%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk5%22%3Esions%26nbsp%3Bis%26nbsp%3Bnot%26nbsp%3Bsupported.%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk20%22%3E%22innerError%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3E%3A%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3EI%20know%20Teams%20API%20is%20in%20beta%20but%20does%20any%20body%20know%20if%20this%20is%20a%20bug%20or%20can%20I%20use%20the%20API%20only%20with%20delegated%20permissions%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22mtk1%22%3EGraph%20call%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%2F%7BMyGroupID%7D%2Fteam%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%2F%7BMyGroupID%7D%2Fteam%3C%2FA%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-178693%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECommunity%3C%2FLINGO-LABEL%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-276442%22%20slang%3D%22en-US%22%3ERe%3A%20Graph%20API%20access%20Teams%20App%20Only%20Permissions%20not%20allowed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276442%22%20slang%3D%22en-US%22%3E%3CP%3EEach%20API%20documents%20whether%20it%20supports%20applications%20permissions%20or%20not%2C%20see%20for%20example%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fapi-reference%2Fbeta%2Fapi%2Fteam_put_teams%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fdocs%2Fapi-reference%2Fbeta%2Fapi%2Fteam_put_teams%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20need%20a%20single%20link%20you%20can%20point%20to%20the%20change%20log%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmicrosoft-graph-docs%2Fblob%2Fmaster%2Fconcepts%2Fchangelog.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmicrosoft-graph-docs%2Fblob%2Fmaster%2Fconcepts%2Fchangelog.md%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276433%22%20slang%3D%22en-US%22%3ERe%3A%20Graph%20API%20access%20Teams%20App%20Only%20Permissions%20not%20allowed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276433%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F228934%22%20target%3D%22_blank%22%3E%40Nick%20Kramer%20(TEAMS)%3C%2FA%3E!%20Can%20you%20also%20point%20to%20a%20documentation%20(so%20we%20complete%20the%20circle%20on%20this)%20%3F%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276402%22%20slang%3D%22en-US%22%3ERe%3A%20Graph%20API%20access%20Teams%20App%20Only%20Permissions%20not%20allowed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276402%22%20slang%3D%22en-US%22%3E%3CP%3EApplication%20permissions%20are%20now%20enabled%20for%20many%20Teams%20APIs%2C%26nbsp%3Bincluding%20adding%20a%20team%20to%20an%20existing%20group.%20We%20are%20continuing%20to%20work%20on%20application%20permissions%20for%20a%20few%20remaining%20APIs%2C%20such%20as%26nbsp%3Bcloning%20a%20team.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276292%22%20slang%3D%22en-US%22%3ERe%3A%20Graph%20API%20access%20Teams%20App%20Only%20Permissions%20not%20allowed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276292%22%20slang%3D%22en-US%22%3E%3CP%3EUnless%20I%20misunderstood%20during%20the%20Microsoft%20365%20Developer%20podcast%2C%20mentioned%20this%20feature%20is%20coming%20pretty%20soon.%20Tagging%26nbsp%3Bfor%20further%20information%20he%20might%20have.%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F228934%22%20target%3D%22_blank%22%3E%40Nick%20Kramer%20(TEAMS)%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-239365%22%20slang%3D%22en-US%22%3ERe%3A%20Graph%20API%20access%20Teams%20App%20Only%20Permissions%20not%20allowed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-239365%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20same%20facing%20issue.%20can%20anyone%20please%20show%20response%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Hi all,

 

I have created a flow that connects to the Grap API and create a Office 365 Group. The connection to Graph is based on Azure AD App with App only permissions. 

 

Creation of Groups works without any problems. Now I also want to create a Team for the Group but I get the following error

 

  "error": {
    "code""InvalidRequest",
    "message""Calling this API using MSGraph Application Permissions is not supported.",
    "innerError": {

 

I know Teams API is in beta but does any body know if this is a bug or can I use the API only with delegated permissions? 

 

Graph call: https://graph.microsoft.com/beta/groups/{MyGroupID}/team

5 Replies
Highlighted

I am same facing issue. can anyone please show response?

Highlighted

Unless I misunderstood during the Microsoft 365 Developer podcast, mentioned this feature is coming pretty soon. Tagging for further information he might have.@Nick Kramer (TEAMS)

Highlighted

Application permissions are now enabled for many Teams APIs, including adding a team to an existing group. We are continuing to work on application permissions for a few remaining APIs, such as cloning a team.

Highlighted

Thanks @Nick Kramer (TEAMS)! Can you also point to a documentation (so we complete the circle on this) ? :) 

Highlighted

Each API documents whether it supports applications permissions or not, see for example https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/team_put_teams

 

If you need a single link you can point to the change log: https://github.com/microsoftgraph/microsoft-graph-docs/blob/master/concepts/changelog.md

 

Related Conversations
The new Fluent design Mail Icon is here!
HotCakeX in Windows Insider Program on
0 Replies
help needed on simple maths in Access
KellieJean-in-Newie in Access on
0 Replies
PowerPoint files in document libraries open blank
Kaylee Goss in SharePoint on
0 Replies
There is a way to block a item?
gorilla_8 in SharePoint on
3 Replies
MS Access
jmtreky in Access on
0 Replies
Teams Emercency Calling with Direct Routing
msabat in Microsoft Teams on
0 Replies