Getting a 401 when promoting a group to a team using app-only token

Ad van den Berg 1 Reputation point
2023-10-20T09:11:27.97+00:00

We use MS graph calls with an app-only token during our provisioning process. In this case we have an M365 Group which we want to promote to a team using this graph query:
https://graph.microsoft.com/v1.0/groups/602ab03c-0cf5-4474-a58c-551deab98e17/team

We use this daily on multiple tenants but since today we see errors happening on some of our (targeted) tenants. We get these type of 401 Unauthorized errors:

Failed to execute MS Graph backend request GetUserFromIdRequest. The server failed to respond correctly. Response Code: Unauthorized, Reason: Reason: Unauthorized, Correlation headers: request-id: 24ba537d-12c8-451e-9767-d51fe8b757b8

client-request-id: 08B1A315115A413F99C749D7EAFCA709

x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Sweden Central","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"GVX0EPF00005355"}}

Date: Fri, 20 Oct 2023 07:25:11 GMT

We have a retry mechanism which retries every hour but up untill now no success.

Any ideas?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,512 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander 36 Reputation points
    2023-11-27T16:13:48.6566667+00:00

    The issue looks solved since Friday.
    No response yet by Microsoft but our regression tests are green again.

    0 comments No comments

Your answer

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