Access denied when fetching mails of organization users

Rajat M Jain 41 Reputation points

Assume the organization is
After having logged in as a user with Global Administrator and having granted all the required permissions in the Graph Explorer, the following query-
The following is the response-
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again.",
"innerError": {
"date": "2021-03-19T08:10:19",
"request-id": "ffb0c7bd-8194-4fa4-afa4-22d1af483e2e",
"client-request-id": "4195b1bc-7d86-9209-1c0b-a71396ccc5cb"

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,383 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    • I believe you're using Client Credentials grant flow above and you want to access the other user mailbox's email items. Make sure that you have the necessary permissions to access the other user mailbox. Validate the token at and see you have the necessary permissions/scopes defined. For more information, refer the detailed step-by-step documentation which talks about the same.
    0 comments No comments