I try to archive a Microsoft team
$scopes = 'Group.ReadWrite.All'
$appid = ‘’
$appsecret = ''
$appaaddomain = ''
$url = "https://graph.microsoft.com/v1.0/teams/{team-id}/archive"
…
Invoke-RestMethod -Method "Post" -Uri $url -Headers @{Authorization = "Bearer $token"
I become 403 error.
{ "error": { "code": "AccessDenied", "message": "Unable to fetch team thread: Failed to execute Skype backend request GetThreadRequest.", "innerError": { "request-id": "99b1dd19-7f58-4237-bb80-d04345d67ae5", "date": "2019-03-03T23:18:55" } } }
What I do wrong?
Delete the team will work
$scopes = 'Group.ReadWrite.All'
$appid = ‘’
$appsecret = ''
$appaaddomain = ''
$url = "https://graph.microsoft.com/v1.0/groups/{team-id}"
…
Invoke-RestMethod -Method "Delete" -Uri $url -Headers @{Authorization = "Bearer $token"
The same result came with the Microsoft graph explorer (here I give me all possible permissions)