/me endpoint returns 401 UnknownError for specific Microsoft Account (@outlook.com) while other Graph endpoints work

Ayush Naik 0 Reputation points
2024-11-08T13:19:49.2666667+00:00

When calling the Microsoft Graph API endpoint https://graph.microsoft.com/v1.0/me with a valid OAuth token, I'm receiving a 401 UnknownError for a specific @outlook.com account. However:

  1. The same token successfully works for other Graph endpoints like /me/messages
  2. The /me endpoint works correctly for other accounts using identical code
  3. The error response provides no meaningful message: { "error": { "code": "UnknownError", "message": "", "innerError": { "date": "2024-11-08T12:55:11", "request-id": "54d694ca-60c0-4055-8e17-d7239a6261f0", "client-request-id": "54d694ca-60c0-4055-8e17-d7239a6261f0" } } }

Troubleshooting steps already taken:

  1. Verified token has correct scopes including User.ReadDetails: When calling the Microsoft Graph API endpoint https://graph.microsoft.com/v1.0/me with a valid OAuth token, I'm receiving a 401 UnknownError for a specific @outlook.com account. However:
    1. The same token successfully works for other Graph endpoints like /me/messages
    2. The /me endpoint works correctly for other accounts using identical code
    3. The error response provides no meaningful message:
            {
                "error": {
                    "code": "UnknownError",
                    "message": "",
                    "innerError": {
                        "date": "2024-11-08T13:09:16",
                        "request-id": "b8bd12af-ec70-4912-92a8-e6e372a3e16b",
                        "client-request-id": "b8bd12af-ec70-4912-92a8-e6e372a3e16b"
                    }
                }
            }
      
    Troubleshooting steps already taken:
    1. Verified token has correct scopes including User.Read
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,289 questions
{count} votes

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.