Share via

How to fix AADSTS50020 error

Bobby Brown 20 Reputation points
2026-05-14T12:29:01.85+00:00

I get this error message when I try to open a shared notebook

AADSTS50020

Microsoft 365 and Office | OneNote | For business | Windows

3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. EmilyS726 230.5K Reputation points Independent Advisor
    2026-05-14T13:07:50.5833333+00:00

    Are you a personal account user, trying to open a file shared with you from an organization user?

    What's the whole message behind this error code? Did it say your personal account doesn't have access or account is not found in tenant xxx?

    If this is the correct scenario, ask the file owner to reshare with you. Instead of using share > invite you by email, have them right click on the file they want to share, then choose "copy link" instead. Then paste the link in a separate email to you.

    Was this answer helpful?

    0 comments No comments

  3. Q&A Assist
    2026-05-14T12:29:15.2166667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Error AADSTS50020 indicates that the account being used to sign in does not exist in the Microsoft Entra (Azure AD) tenant that hosts the shared resource, or the wrong account/tenant is being used.

    For a shared OneNote/OneDrive-based notebook, use these steps:

    1. Confirm the correct account and tenant
      • In the error message, check the User account, Identity provider, and tenant values.
      • Make sure the account shown is the one that was actually granted access to the shared notebook (for example, work/school vs personal Outlook/Hotmail/OneDrive account).
    2. Sign out and clear active sessions
      • Sign out of all Microsoft accounts in the browser and OneNote/OneDrive clients.
      • Open a private/incognito browser window or a different browser.
      • Try opening the shared notebook link again and sign in with the correct account that was invited.
      • This addresses the “signed in to the wrong tenant” scenario where an existing session uses the wrong account.
    3. Ensure the account was invited (for guest access)
      • If the notebook is in another organization’s tenant and the account is a guest, the owner must explicitly invite that account to the tenant before it can access the resource.
      • The resource owner should follow the steps in “Quickstart: Add guest users to your directory in the Azure portal” to invite the guest user, then resend the notebook share link.
    4. Check app registration audience (for custom apps)
      • If access is through a custom app or integration, the app registration must allow the type of account being used.
      • In Azure portal → App registrations → [app] → Manifest, verify signInAudience is one of:
        • AzureADandPersonalMicrosoftAccount
        • AzureADMultipleOrgs
        • PersonalMicrosoftAccount
      • If it is single-tenant and you need external users, re-create the app registration with the correct audience.
    5. If using personal Microsoft account for admin tasks
      • Personal Microsoft accounts (Outlook, Hotmail, OneDrive) cannot administer a tenant unless an Azure account and tenant have been created and linked.
      • If trying to access admin resources rather than just the notebook, create an Azure account and tenant as described in the documentation, then use that tenant’s account.

    If the issue persists after confirming the correct account, signing out/in via a private session, and ensuring the account is invited to the tenant, the notebook owner or tenant admin should review the sign-in logs in Microsoft Entra ID for the failing user to confirm which cause applies.


    References:

    Was this answer helpful?

Your answer

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