Skip to main content

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​

  1. Make sure the request sends a Microsoft Graph access token as an Authorization: Bearer header. An ID token isn't a substitute.
  2. Verify that the token hasn't expired and that your application requested it for the right Microsoft Graph endpoint and cloud.
  3. If the request still fails, record the request ID and timestamp without copying the access token into the ticket or logs.

Official reference​

Microsoft Learn: Microsoft Graph error responses