Getting "MailboxNotEnabledForRESTAPI" while trying to use MS Graph API on Postman

João Pimentel 1 Reputation point
2021-02-18T17:12:02.093+00:00

I'm a beginner with MS Graph,
After a few days trying to use MS Graph API on Postman, following this guide https://learn.microsoft.com/en-us/graph/use-postman
At first I got "OrganizationFromTenantGuidNotFound" when trying to call "https://graph.microsoft.com/v1.0/me/messages" or the events endpoint

So yesterday I started to get
69733-image.png

And I didn't changed a thing, so I'm unsure of what I'm doing wrong
I can access some endpoints, like "https://graph.microsoft.com/v1.0/me" and "https://graph.microsoft.com/v1.0/users", but I need to call the events endpoint
Besides, I can make all the calls normally with MS Graph Explorer and using MS Graph Explorer token on postman too

I would be very grateful if someone could point me to the right direction.

Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
800 questions
Microsoft Graph Azure AD API
Microsoft Graph Azure AD API
A Microsoft API that queries the user's profile, finds other users, manages organizational relationships, tracks assignments, or creates original solutions that incorporate existing organizational data.
253 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Vasil Michev 71,216 Reputation points MVP
    2021-02-18T18:41:03.33+00:00

    What kind of account do you have, are you using OrgID or MSA, do you have a mailbox enabled for said account and where is the mailbox located? Also are you saying that the call works on Graph explorer but not on Postman?


  2. João Pimentel 1 Reputation point
    2021-02-19T16:09:59.427+00:00

    I have the following permissions with admin consent on my azure portal

    70118-image.png

    I shouldn't get events results, but I think it should be enough to get mails on delegated request
    Also, when I copy Graph explorer token and paste on postman, it works fine


  3. João Pimentel 1 Reputation point
    2021-02-19T20:14:29.48+00:00

    I don't know which information about the token I can post here or not, but I believe that these are the scope infos that came with my token, so it appears to be right

    "scp": "Mail.Read Mail.ReadBasic User.Read profile openid email"

    I tried also, to check MS Graph explorer token on this both jwt.ms and jwt.io, but in any of then, they decodified any info