SOLVED

How to know a user has permission to create Team

Brass Contributor

for a user in teams if the teams creation option is disabled, how can we know the user permission from graph api.

4 Replies

@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.

Any alternate approach
best response confirmed by Umag98 (Brass Contributor)
Solution

@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 Error
 

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.

@Umag98 - Please let us know if you still need any help here?

Thanks,

Chetan Sharma

------------------------------------------------------

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.

 
1 best response

Accepted Solutions
best response confirmed by Umag98 (Brass Contributor)
Solution

@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 Error
 

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.

View solution in original post