Facing access denied error while accessing emails from shared maibox through graph API.
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 ?