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

佐藤 浩二 21 Reputation points

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


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

    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:


    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

    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