question

JanLangdeelPedersen-9863 avatar image
0 Votes"
JanLangdeelPedersen-9863 asked

Trouble reading all emails from shared inbox

Hi
I am trying to create an application to read and move emails from a shared mailbox using the Microsoft Graph API. I have given my app delegated permissions to do so.
I have obtained an authorization code and then use the token endpoint to get my bearer token. At jwt.ms I can see that my token has the following scope:
'Mail.Read Mail.Read.Shared Mail.ReadWrite.Shared openid profile User.Read User.ReadBasic.All email'

But still I am getting an Access is denied error when trying to read emails from a shared mailbox. The error message is:
"Access is denied. Check credentials and try again. REST APIs for this mailbox are currently in preview. You can find more information about the preview REST APIs at https://dev.outlook.com/"
What am I missing? It works just fine when I read mails from my personal inbox.

microsoft-graph-mail
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers