Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS500022

Access to '{tenant}' tenant is denied

Alternative forms: 500022

Code AADSTS500022 · An issue reported by Microsoft Entra ID.

Access to '{tenant}' tenant is denied. AADSTS500022 indicates that the tenant restriction feature is configured and that the user is trying to access a tenant that isn't in the list of allowed tenants specified in the header Restrict-Access-To-Tenant. For more information, see Use tenant restrictions to manage access to SaaS cloud applications.

Troubleshooting and diagnostic links

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