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 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
    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