Getting “MailboxNotEnabledForRESTAPI” While trying to use MS Graph APIs

Priyadarshinee, Arpita (external) 21 Reputation points
2020-12-17T12:09:43.98+00:00

We have used MS Graph API(MSAL) in one SAP UI5 Application and have implemented Mail api, Calender api and MailboxSetting apis so far. It was working fine till last month. Suddenly this application keeps throwing the error "{"error":{"code":"MailboxNotEnabledForRESTAPI","message":"REST API is not yet supported for this mailbox."}}". Though we have not changed a single code.

We are not sure what has caused this issue. Can anyone please help me out?

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

1 answer

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2020-12-17T19:09:58.947+00:00

    Please check where is the target mailbox is located - Exchange on-prem or Exchange Hybrid or Office 365 or MSA/Outlook?

    The error is telling that the given mailbox you're trying to access is not enabled for REST API. You will see this error if the given mailbox is not located in M365. Also check with your administrator what other settings/environment changes happened.