Forum Discussion
Jon Studsrud
Microsoft
Mar 30, 2020Unable to create Microsoft Team via beta Graph https://graph.microsoft.com/beta/teams
So I'm trying to use the beta Graph API to create a Microsoft Team via flow. I have been successful using the Clone API however I'm getting the following error via the POST to create a new Team.
Status Code 403
UnknownError
Via Graph Explorer it works fine.
However in Power Automate with same call it fails. With the 403 error it seems its some kind of permission issue. Per the documentation here I have the permissions on my app set correctly. https://docs.microsoft.com/en-us/graph/api/team-post?view=graph-rest-beta I pass the same Client ID, Secret etc and I can use the CLone API without issue. Only difference is Clone is v1.0 while Create API is beta. Also, I have another flow where I connect to an Azure Storage Queue to trigger an Azure Function with the same creds, app as well and that works. Not sure whats going on. Any insight would be great. I basically followed this guidance on the create https://www.lee-ford.co.uk/new-team-request-for-teams-using-flow-and-graph-api/
5 Replies
Sort By
- Nikitha-MSFTFormer Employee
Jon Studsrud - Is your flow is in the same tenant where you are trying to create team?
- Jon Studsrud
Microsoft
Nikitha-MSFT - yes, this is all in the same tenant.
- subhasish-MSFTFormer Employee
Jon Studsrud , 403 status code seems like permission issue. Can you please verify if the API permissions are having "admin consent" approved for the app registration .