https://graph.microsoft.com/v1.0/me/messages/ - response error code - OrganizationFromTenantGuidNotFound

DEV TEST 0 Reputation points
2023-10-11T20:00:00.9333333+00:00

Listing the inbox mails do we need to buy subscription plan? After generating the OAuth 2.0 token and calling this method https://graph.microsoft.com/v1.0/me/messages/ and the response is

{"error":{"code":"OrganizationFromTenantGuidNotFound","message":"The tenant for tenant guid
'8baab99c-e9d6-4f36-a518-11ad2e86e412' does not
exist.","innerError":{"oAuthEventOperationId":"418b7a4b-05d4-441e-b008-1c97f4d037e0","oAuthEventcV":"0fRQ3JiQ+a1k485+eiGALw.1.1","errorUrl":"https://aka.ms/autherrors#error-InvalidTenant","requestId":"ffb82041-fa32-436b-964c-279dedb1ef96","date":"2023-10-11T19:52:37"}}}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,447 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 40,311 Reputation points
    2023-10-12T06:49:15.6+00:00

    Hi @DEV TEST

    Yes, you need to have an O365 license to list mail, users with an O365 license will be automatically assigned an EXO mailbox.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.