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.