So the issue is I'm making this API call (below):
Request:
GET https://graph.microsoft.com/v1.0/me/mailFolders('SentItems')/messages
Authorization: Bearer <access token>
Scopes: openid profile User.Read email Mail.ReadBasic Contacts.Read
Oauth Flow: on_behalf_of
Response:
"error": {
"code": "ErrorAccessDenied",
"message": "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/.",
"innerError": {
"date": "2022-06-23T10:57:21",
"request-id": "57b4f72e-903b-4286-9b20-59c4f4003182",
"client-request-id": "57b4f72e-903b-4286-9b20-59c4f4003182"
}
}
** Issue Description:**
- Im having Mail.ReadBasic but still its throwing the error for some Org Accounts
- This API call is returning 403 for only some Microsoft Organizational Accounts only and not all
- let say we have organization foo.com Its working for some users ( bar@hko .com ) within the organization and throwing this error for ( baz@hko .com). this is why im lost
- for all personal Microsoft accounts its working fine
Any help is greatly appreciated
Thanks