Mar 30 2020 04:21 PM - edited Mar 30 2020 04:24 PM
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
Mar 31 2020 04:34 AM
@Jon Studsrud - Is your flow is in the same tenant where you are trying to create team?
Mar 31 2020 07:19 AM
@Nikitha-MSFT - yes, this is all in the same tenant.
Mar 31 2020 07:55 AM
@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 .
Mar 31 2020 09:43 AM
@subhasish-MSFT - So I went back and added Application Group.ReadWrite.All permissions and this is working now.. Really odd. because I had the permission set per this doc. https://docs.microsoft.com/en-us/graph/api/team-post?view=graph-rest-beta where I set the delegated permissions. The doc below says I only needed one of the following. Interesting the cloning method worked with the delegated perms and Create doesn't.
Thank you for helping here. I think this issue is resolved.
Per Documentation I need the following.
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Group.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Group.ReadWrite.All |
Current configuration
Mar 31 2020 10:27 PM
@Jon Studsrud Thanks for the update. Good to know that the issue is resolved.
I could see here that while adding user as owner application permission is required. It could be causing the issue.