Forum Discussion
Unable to create Microsoft Team via beta Graph https://graph.microsoft.com/beta/teams
Jon Studsrud - Is your flow is in the same tenant where you are trying to create team?
Nikitha-MSFT - yes, this is all in the same tenant.
- subhasish-MSFTMar 31, 2020
Microsoft
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 .
- Jon StudsrudMar 31, 2020
Microsoft
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.
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
- subhasish-MSFTApr 01, 2020
Microsoft
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.