Forum Discussion

Umag98's avatar
Umag98
Brass Contributor
Sep 15, 2021

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

      • Meghana-MSFT's avatar
        Meghana-MSFT
        Icon for Microsoft rankMicrosoft

        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