HTTP 401: Unauthorized
Microsoft Graph couldn't authenticate the request. Check the HTTP status and the response body's error.code for details.
What to check
- Make sure the request sends a Microsoft Graph access token as an
Authorization: Bearerheader. An ID token isn't a substitute. - Verify that the token hasn't expired and that your application requested it for the right Microsoft Graph endpoint and cloud.
- If the request still fails, record the request ID and timestamp without copying the access token into the ticket or logs.