Forum Discussion
How to know a user has permission to create Team
for a user in teams if the teams creation option is disabled, how can we know the user permission from graph api.
Umag98 - Please check the below options.
1) You can get the Auth token of the user and decrypt it & then you can check for user roles in it.You would find if Team.create permission is granted or not.2) other way is to run the command to create a Team & check for 403 ErrorThanks,
Meghana--------------------------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- Meghana-MSFTMicrosoft
Umag98 - There is no graph API to know if a user can create a team.
Thanks,
Meghana--------------------------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- Umag98Brass ContributorAny alternate approach
- Meghana-MSFTMicrosoft
Umag98 - Please check the below options.
1) You can get the Auth token of the user and decrypt it & then you can check for user roles in it.You would find if Team.create permission is granted or not.2) other way is to run the command to create a Team & check for 403 ErrorThanks,
Meghana--------------------------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.