Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS50020

UserUnauthorized

Alternative forms: 50020

Code AADSTS50020 · An issue reported by Microsoft Entra ID.

UserUnauthorized - Users are unauthorized to call this endpoint. User account '{email}' from identity provider '{idp}' does not exist in tenant '{tenant}' and cannot access the application '{appid}'({appName}) in that tenant. This account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Microsoft Entra user account. If this user should be a member of the tenant, they should be invited via the B2B system. For additional information, visit AADSTS50020.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.