SOLVED

How to know a user has permission to create Team

%3CLINGO-SUB%20id%3D%22lingo-sub-2753257%22%20slang%3D%22en-US%22%3EHow%20to%20know%20a%20user%20has%20permission%20to%20create%20Team%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2753257%22%20slang%3D%22en-US%22%3E%3CP%3Efor%20a%20user%20in%20teams%20if%20the%20teams%20creation%20option%20is%20disabled%2C%20how%20can%20we%20know%20the%20user%20permission%20from%20graph%20api.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2753257%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2760515%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20know%20a%20user%20has%20permission%20to%20create%20Team%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2760515%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085229%22%20target%3D%22_blank%22%3E%40Umag98%3C%2FA%3E%26nbsp%3B-%26nbsp%3BThere%20is%20no%20graph%20API%20to%20know%20if%20a%20user%20can%20create%20a%20team.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EMeghana%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%3E--------------------------------------------------------------------------------------------------------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20the%20response%20is%20helpful%2C%20please%20click%20%22**Mark%20as%20Best%20Response**%22%20and%20like%20it.%20You%20can%20share%20your%20feedback%20via%20%3CA%20tabindex%3D%22-1%22%20title%3D%22https%3A%2F%2Faka.ms%2Fdevsupportfeedback)%22%20href%3D%22https%3A%2F%2Faka.ms%2FDevSupportFeedback)%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3EMicrosoft%20Teams%20Developer%20Feedback%3C%2FA%3E%20link.%20Click%20%3CA%20tabindex%3D%22-1%22%20title%3D%22https%3A%2F%2Faka.ms%2Fdevcommunityescalationform%22%20href%3D%22https%3A%2F%2Faka.ms%2FDevCommunityEscalationForm%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%22%3Ehere%3C%2FA%3E%20to%20escalate.%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2771639%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20know%20a%20user%20has%20permission%20to%20create%20Team%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2771639%22%20slang%3D%22en-US%22%3EAny%20alternate%20approach%3C%2FLINGO-BODY%3E
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 (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.