Reputation: 131
I would like to use the Microsoft Graph API to programmatically check an Office365 Mailbox.
I followed all documentation, i.e.
Mail.Read
, MailboxSettings.Read
, User.Read.All
- all with Admin Consentmail-enabled security group
including the email addresses that should be accessed by the scriptApplicationAccessPolicy
to link those two itemsNow,
https://graph.microsoft.com/v1.0/users/
) https://graph.microsoft.com/v1.0/users/USERIDHERE/messages
) I get the following 403 error: {
"error": {
"code": "ErrorAccessDenied",
"message": "Access to OData is disabled.",
"innerError": {
"request-id": "73db8b50-1f16-4301-abbd-d3fbbc78ca9b",
"date": "2019-12-20T16:08:34"
}
}
}
Upvotes: 4
Views: 4674
Reputation: 131
It actually solved itself, after waiting about 1 hour.
I guess the culprit was the Exchange cache.
Upvotes: 5