Microsoft Entra ID (Azure AD) Sign-in Errors
The AADSTS error codes that block sign-in and app auth across Microsoft Entra ID (Azure AD), Teams, and Azure apps — conditional-access blocks, missing admin consent, expired client secrets, redirect-URI mismatches. Each guide decodes the exact AADSTS number and the admin fix. Find your code below, or describe the failure to the assistant.
Fix your error now
Paste the error or logs and let the Incident Assistant diagnose it, or run a guided triage prompt with AI — no copy-paste.
AADSTS error code reference
The sign-in error codes Entra ID (Azure AD) returns most often, what each one actually means, and the first thing to change. Codes in colour link to a full guide.
| Code | What it means | First fix to try |
|---|---|---|
| AADSTS50011 | The redirect URI in the request does not match one registered on the app. | Add the exact URI (scheme, host, port, path, trailing slash) under App registrations → Authentication. |
| AADSTS50020 | The user account is from another tenant and cannot access this application. | Invite the account as a guest, or make the app multi-tenant if external access is intended. |
| AADSTS50034 | The account does not exist in the tenant the request was sent to. | Check for a typo in the username, and confirm you are signing in against the right tenant. |
| AADSTS50053 | The account is locked by smart lockout after repeated failed sign-ins. | Wait out the lockout window, then find the source of the bad credentials in the sign-in logs. |
| AADSTS50055 | The password has expired. | Reset the password, or exempt the service account from expiry if it is non-interactive. |
| AADSTS50058 | A silent sign-in was attempted but no user session exists. | Fall back to an interactive prompt; silent-only auth cannot establish a first session. |
| AADSTS50076 | Multi-factor authentication is required for this resource. | Complete an interactive MFA prompt; a client-credentials or silent flow cannot satisfy MFA. |
| AADSTS50105 | The signed-in user is not assigned a role for the application. | Assign the user or group to the enterprise app, or turn off "User assignment required". |
| AADSTS50126 | The username or password is invalid. | Re-check the credential; if it is a service account, confirm nothing rotated it underneath you. |
| AADSTS50194 | A single-tenant app was called through the /common endpoint. | Use the tenant-specific authority, or register the app as multi-tenant. |
| AADSTS53003 | Access was blocked by a Conditional Access policy. | Open the sign-in log entry and read which policy matched — location, device state and MFA are the usual causes. |
| AADSTS65001 | The user or administrator has not consented to the application. | Grant admin consent for the requested scopes under Enterprise applications → Permissions. |
| AADSTS90002 | The tenant was not found. | Verify the tenant ID or domain in the authority URL; a deleted or mistyped tenant produces this. |
| AADSTS500011 | The resource principal was not found in the tenant. | Check the scope/audience you requested, and confirm the API’s service principal exists in the tenant. |
| AADSTS700016 | The application was not found in the directory. | Confirm the client ID and the tenant; a multi-tenant app also needs consent in the signing-in tenant. |
| AADSTS7000215 | The client secret provided is invalid. | Use the secret VALUE, not its ID — and confirm it has not been rotated or removed. |
| AADSTS7000222 | The client secret has expired. | Create a new secret under Certificates & secrets and roll it into the app configuration. |
| AADSTS900023 | The tenant identifier is neither a valid GUID nor a valid domain name. | Fix the authority URL — this is a malformed tenant value, not a permissions problem. |
| AADSTS9002325 | A single-page app redeemed an auth code without PKCE. | Register the redirect URI under the SPA platform and use the authorization-code flow with PKCE. |
Every guide in this cluster
10 guides-
'AADSTS50105' Conditional Access Blocked / User Not Assigned to Application
Fix AADSTS50105 and Conditional Access block errors in Teams and Graph API: diagnose app assignment, CA policy scope, compliant device, and MFA requirements.
-
'AADSTS65001: The user or administrator has not consented to use the application' — Cause, Fix, and Troubleshooting Guide
Fix Entra ID AADSTS65001: no consent to use the application. Grant admin consent for the app's permissions or complete the user consent flow.
-
'AADSTS7000215: Invalid client secret provided' — Fix Expired Entra Credentials
Fix AADSTS7000215 on Teams Graph integrations: an expired, wrong, or malformed Entra app client secret. Rotate with overlapping credentials, verify the token, and prevent recurrence.
-
'AADSTS90002: Tenant not found' — Cause, Fix, and Troubleshooting Guide
Fix Entra ID AADSTS90002: tenant not found. Verify the tenant id/domain in your authority URL and check the sovereign cloud endpoint.
-
AADSTS50105 'User not assigned to a role': How to Fix in Entra ID
Fix the AADSTS50105 user-not-assigned-to-role Entra ID error: app role assignment, assignment-required enterprise apps, and group-based access.
-
AADSTS700016 & AADSTS50076 in Entra ID: Fix App-Not-Found and MFA-Required
Fix Entra ID AADSTS700016 (application not found in directory) and AADSTS50076 (MFA required): diagnose wrong tenant, missing service principal, bad client ID, and conditional access.
-
AADSTS7000215 'Invalid client secret provided': How to Fix in Entra ID
Fix the AADSTS7000215 invalid client secret error in Entra ID, covering expired secrets, secret ID vs value, wrong tenant, and encoding issues.
-
'AADSTS7000222: The provided client secret keys are expired' — Cause, Fix, and Troubleshooting Guide
Fix Entra ID AADSTS7000222: the client secret keys are expired. Rotate the app registration secret, update Key Vault, or switch to federation.
-
Least-Privilege Entra ID and Azure RBAC With AI as Your Reviewer
Owner on a subscription is a liability, not a convenience. Here's how AI helps you draft scoped Azure RBAC, decode role definitions, and find the over-privileged principals you forgot about.
-
'AADSTS65001: The user or administrator has not consented' — Grant Admin Consent
Fix AADSTS65001 in Microsoft Teams apps: grant admin consent for Graph scopes, pre-authorize the Teams client on your API, and repair SSO on-behalf-of tokens.
Azure with AI AI prompts
Copy-paste, production-safe prompts for this stack.
More Azure with AI guides
Every Azure with AI prompt and troubleshooting guide.