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 Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
720 questions
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
796 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 4,001 Reputation points Microsoft Vendor

    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