Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS50002

NotAllowedTenant

Alternative forms: 50002

Code AADSTS50002 · An issue reported by Microsoft Entra ID.

NotAllowedTenant - Sign-in failed because of a restricted proxy access on the tenant. If it's your own tenant policy, you can change your restricted tenant settings to fix this issue.

Troubleshooting and diagnostic links

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