Forum Discussion
Adding a Team using Microsoft Graph API, App vs. Delegated Permissions
Hi Mary F Harvey These https://docs.microsoft.com/en-us/graph/api/team-put-teams?view=graph-rest-1.0&tabs=http using Graph API supports admin permissions. Global admins and Microsoft Teams service admins can access groups that they are not a member of.
You need to give Application and Delegate permissions both
Trinetra-MSFT , yes, we are aware of that and in fact are using a Teams Admin service account for other tasks. But we are prevented from creating a global admin service account for security reasons, and according to this article (see https://docs.microsoft.com/en-us/microsoftteams/limits-specifications-teams) each Teams Admin account is limited to creating a maximum of 250 teams. As a result, we have to use App Permissions to create the groups (as there are a lot of them). But there seems to be a bug when adding a team to the group using app permissions and so we use a Teams Admin account to add the team with delegated permissions.
- Trinetra-MSFTMar 19, 2021Former EmployeeLet me check this once I will get back to you soon