Access token response issue.

sonali dudhia 5 Reputation points
2024-10-01T04:47:52.4866667+00:00

I am having trouble with an access_token generated from the Microsoft Entra account API. The access token has admin consent with the scope of Calendars.Read. But when I use it to fetch the URL, I get a response showing code 401 Unauthorized or {"error":{"code":"OrganizationFromTenantGuidNotFound","message": "The tenant for tenant guid 'xxx' does not exist."}. I have verified that the tenant id is correct.

Strangely, I get a proper response when I use the same steps in the Graph Explorer API tool.

Can someone help me resolve this issue ASAP?

Thanks.

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

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.