# Entra AADSTS50020: account is not in the tenant

The user signed in with an account from another identity provider or tenant (often a personal Microsoft account or a guest from another company) that does not exist in the tenant the connection uses.

## What to change

- **User:** sign out of Microsoft and sign in with the work account from the company that owns the connection.
- **IT admin:** if the person really should have access, invite them as a guest user and assign them to the application.
- **Developer:** confirm the user picked the right organization; a routing hint by email domain sends them to the right tenant.

## Related OhAuthCat error

None. OhAuthCat never receives this request, so it has no matching error code; the error appears only in the IdP.

## Source

Written in our own words from the public Microsoft Entra ID documentation: [https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes](https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes). Check it for the vendor's current wording; vendors change their pages without notice.
