Share via

Various Error with Microsoft.Graph.Teams

user.sre 5 Reputation points
2025-02-25T14:22:57.4433333+00:00

Since yesterday we can't really use Microsoft.Graph.Teams.

We receive various errors with POST requests.

How to reproduce

$params = @{
"******@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')"
displayName = "My Sample Team"
description = "My Sample Team’s Description"
}
New-MgTeam -BodyParameter $params

Known Workarounds

$params = @{
"******@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')"
displayName = "My Sample Team"
description = "My Sample Team’s Description"
}
Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/v1.0/teams" -Method POST -Body $params
Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 2,375 Reputation points Microsoft External Staff
    2025-02-26T06:56:41.5133333+00:00

    Hi user.sre,

    Thanks for reaching out to Microsoft!

    I tried to reproduce from my end. I have granted "Team.Create" delegated permissions to my work account and verified in Graph Explorer and able to create a team successfully with 202 Response Status Code (as shown below). User's imageMicrosoft Graph error responses and resource types

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.