Share via

AADSTS50020 Error When Accessing Office 365 SharePoint Online

Anonymous
2025-04-03T22:39:39.0166667+00:00

Encountering the AADSTS50020 error while trying to sign into Microsoft services. The error indicates that the identity provider 'live.com' does not exist in the tenant 'Egyptian Ministry of Education', preventing access to the application '00000003-0000-0ff1-ce00-000000000000' (Office 365 SharePoint Online).

To resolve this, the account needs to be added as an external user in the tenant. Attempts to sign out and sign in with a different Azure Active Directory user account have been made, and there is a need to delete the existing account from the device to facilitate access to other accounts. What steps can be taken to resolve this?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

2 answers

Sort by: Most helpful
  1. Carolyne-3676 1,136 Reputation points
    2025-04-23T05:47:59.5433333+00:00

    To add on what Goutam has posted- if this is a valid Entra ID account that you intended to use-this route might be helpful.
    The AADSTS50020 error indicates that the account you're trying to use to sign in isn't recognized by the Azure Active Directory (Azure AD) tenant you're trying to access. This error can occur if you've signed in with a personal Microsoft account, but the application is trying to sign you in with a work or school account from your organization's Azure AD tenant.

    Here are the steps to resolve this:

    1. Sign out of all Microsoft services. This includes Office 365, Azure portal, etc. Make sure to close all browser windows after signing out.
    2. Clear your browser cache and cookies. This step will ensure that your previous sign-in data is completely removed.
    3. Sign in with the correct work or school account. Make sure this account is recognized by your organization's Azure AD tenant.

    If the problem persists, you may need to remove the account from your device. Here's how you can do it:

    • In Windows, go to Settings > Accounts > Access work or school, and then select the account you want to remove.
    • In iOS, go to Settings > Mail > Accounts, and then select the account you want to remove.
    • In Android, go to Settings > Accounts, and then select the account you want to remove.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Goutam Pratti 6,215 Reputation points Microsoft External Staff Moderator
    2025-04-07T16:04:16.63+00:00

    Hello @Fathy, Ahmed Mohamed Fathy Mostafa ,

    The AADSTS50020 error means that the account needs to be added as an external user in the tenant first. It indicates that the Microsoft account you are trying to use is not recognized by the Microsoft Entra Directory tenant.
    User's image

    To resolve this issue, you need to add the Microsoft account as an external user in the tenant. Here are the steps to add an external user in the tenant:

    1. Sign in to the Microsoft Entra id as a Global administrator or User administrator.
    2. In the Azure portal, select Microsoft Entra ID.
    3. Select Users.
    4. Select New guest user.
    5. Enter the email address of the Microsoft account you want to add.
    6. Select the role you want to assign to the user.
    7. Select Invite.
    8. The user will receive an email invitation to join the tenant, you have to accept the invite.

    Once the Microsoft account is added as an external user in the tenant, you should be able to sign in to the app without encountering the error message.

    You can check the document to resolve the AADSTS50020 error: https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/app-integration/error-code-aadsts50020-user-account-identity-provider-does-not-exist

    Also, you check the reference thread: https://learn.microsoft.com/en-us/answers/questions/2237137/getting-an-error-message-that-the-user-does-not-ex

    Hope this information helps. If you are still facing the issue let us know. Happy to assist you further.

    Was this answer helpful?

    0 comments No comments

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.