Facing access denied error while accessing emails from shared maibox through graph API.

Siddhesh Gholap 0 Reputation points
2024-08-08T11:26:01.3366667+00:00

Hello

I want to access a shared mailbox with Microsoft Graph. I am currently trying to get a response with Graph Explorer. What I found so far to access a shared mailbox is the following GET request: "https://graph.microsoft.com/v1.0/users/{sharedmailboxmailaddress}/messages" as a respond I get:

{ "error": { "code": "ErrorAccessDenied", "message": "Access is denied. Check credentials and try again.", "innerError": { "date": "2020-08-28T08:39:00", "request-id": "ba9bddb6-601e-4d37-a787-3e2e474ce72b" } } }

I have provided Following API delegated permissions - Mail.Read, Mail.Read.Shared, Mail.ReadWrite , Mail.ReadWrite.Shared , Mail.Send , Mail.Send.Shared.

How should I resolve this issue or what extra permission should i give ?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
0 comments No comments
{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.