/me endpoint returns 401 UnknownError for specific Microsoft Account (@outlook.com) while other Graph endpoints work
Ayush Naik
0
Reputation points
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:
- The same token successfully works for other Graph endpoints like /me/messages
- The /me endpoint works correctly for other accounts using identical code
- 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:
- 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:
- The same token successfully works for other Graph endpoints like /me/messages
- The /me endpoint works correctly for other accounts using identical code
- 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" } } }
- Verified token has correct scopes including User.Read
Sign in to answer