Forum Discussion

Umag98's avatar
Umag98
Brass Contributor
Sep 15, 2021
Solved

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.
  • Meghana-MSFT's avatar
    Meghana-MSFT
    Sep 24, 2021

    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.

Resources