Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
_graph.Groups[groupId].Team.PutAsync(team, cancellationToken: ct);
An API that connects multiple Microsoft services, enabling data access and automation across platforms
AI answer
_graph.Groups[groupId].Team.PutAsync(team, cancellationToken: ct); calls the Microsoft Graph Create team from group API:
PUT /groups/{id}/team
Key requirements and common issues for this call:
groupId) must already be created and must have at least one owner. If the group has no owners, the PUT will fail.404 Not Found because the group information has not fully replicated. The guidance is:
Group.ReadWrite.All (least privileged) or Directory.ReadWrite.AllGroup.ReadWrite.All (least privileged) or Directory.ReadWrite.All /groups/{id}/team and /teams/{id} refer to the same logical team. Ensure groupId is the group’s ID, not some other identifier.To troubleshoot:
Group.ReadWrite.All or Directory.ReadWrite.All and that admin consent is granted.PutAsync again.References: