I'm trying to hit https://graph.microsoft.com/v1.0/users/{userId}/mailboxSettings
endpoint with an auth token and in return receiving a 403 Error Access Denied
response.
I have granted both application level and delegated permissions for MailboxSettings.Read, MailboxSettings.ReadWrite
. I can verify that these permissions are enabled on the installed application via examination of my decoded auth token with the jwt.ms
. Here is the exert from the decoded token:
"scp": "Directory.AccessAsUser.All Files.ReadWrite.All Group.ReadWrite.All Mail.Read Mail.ReadWrite Mail.Send MailboxSettings.Read MailboxSettings.ReadWrite Sites.ReadWrite.All"
I have also verified that the user I am requesting mailboxSettings for has been granted access via Admin Consent.
I am able to return mailboxSettings if I hit the endpoint for either the admin userId or the https://graph.microsoft.com/v1.0/users/me/mailboxSettings
endpoint. Any help would be much appreciated.