I am trying to read outlook mail attachments but I am getting 401 saying Error message: The tenant for tenant guid '****' does not exist.

Srividya Bobbiti 0 Reputation points
2025-02-03T18:08:26.35+00:00

'm actually working on reading outlook emails. I have one personal microsoft account connected to the outlook and Azure active directory tenant. Have registered my application. Have a paid office 365 license and a free trial Azure AD account (with same MS account). Still it throws the error "OrganizationFromTenantGuidNotFound","message":"The tenant for tenant guid '<tenant-GUID>' does not exist."

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

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 1,335 Reputation points Microsoft Vendor
    2025-02-04T02:59:10.1133333+00:00

    Hi Srividya Bobbiti,

    Thanks for reaching out to Microsoft!

    Error - OrganizationFromTenantGuidNotFound indicates that the account does not have a valid MS 365 License.

    Even though you have a paid Office 365 license, you need to ensure that the license is assigned to the user account you're using. Go to the Azure portal, navigate to Azure Active Directory, and check if the user has the appropriate license assigned.

    Similar posts: https://learn.microsoft.com/en-us/answers/questions/2028587/how-to-fix-organizationfromtenantguidnotfound-whil

    https://learn.microsoft.com/en-us/answers/questions/1841003/how-can-i-fix-error-code-organizationfromtenantgui

    Hope this helps.

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.