Microsoft Graph me/messages API return message "Access to OData is disabled."

佐藤 浩二 21 Reputation points
2022-04-21T06:23:40.837+00:00

Why am I getting an error when all permissions have been agreed?

194956-image.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,124 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,846 Reputation points
    2022-04-21T07:37:55.893+00:00

    Hello @佐藤 浩二 This issue may be due to ApplicationAccessPolicy. Administrators can limit third-party app access to only that set of mailboxes by creating
    an application access policy for access to that group. Here is the documentation:
    https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access
    https://learn.microsoft.com/en-us/powershell/module/exchange/get-applicationaccesspolicy?view=exchange-ps

    194997-image.png

    Hope this helps.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 佐藤 浩二 21 Reputation points
    2022-04-21T09:16:12.213+00:00

    I'm setting Set-OrganizationConfig -EwsApplicationAccessPolicy: EnforceAllowList for another reason.
    What should I set for Microsoft Graph if I have to use EwsAllowList?

    0 comments No comments