What it means
Invalid username or password. Some of these are normal typos.
Common causes
- The user typed the wrong username or password. Microsoft notes that some number of these errors in the logs is expected.
- The account uses a different UPN than the address the user entered (for example an alias or typo).
- A burst of failures across many accounts, or from unfamiliar IP addresses, which can indicate password spray or another attack.
Quick checks
- Open Entra admin center → Entra ID → Monitoring & health → Sign-in logs, find the failed events, and copy a Correlation ID, date, and time.
- Read the Failure reason and Additional Details, then look at the pattern: one user making a few mistakes is expected.
- Check the application, client app, IP address, and location. A burst across many accounts or from unfamiliar IPs can indicate password spray.
- Confirm the username the user typed matches a UPN that exists in the tenant.
How to fix it
If you are the user
- Check the username (including the domain) and retry the password carefully. Use the "Forgot password" option if self-service password reset is available.
- If you are sure the password is correct and it still fails, contact your admin. Do not keep retrying blindly, which can lead to a lockout (AADSTS50053).
If you are an admin
- Open Entra admin center → Entra ID → Monitoring & health → Sign-in logs and look at the pattern: one user making a few mistakes is normal.
- A burst across many accounts or from unfamiliar IPs suggests password spray. Block legacy authentication and require MFA so stolen or guessed passwords are not enough.
- Confirm the account exists and the UPN the user is typing matches the directory. Reset the password if the user is legitimately stuck.
Related Conditional Access / MFA notes
AADSTS50126 is a credential validation failure, not a Conditional Access block. After a correct password, MFA or Conditional Access can still apply (AADSTS50076, AADSTS53003). Blocking legacy authentication and requiring MFA reduces the impact of guessed or sprayed passwords.
When to escalate
Escalate if many accounts fail at once, the source IPs are unfamiliar, or a privileged account is being targeted. Capture the timeframe and a sample of Correlation IDs from the sign-in logs.
Official references
- Microsoft's AADSTS error code reference (opens in a new tab)
- Official lookup for AADSTS50126 (opens in a new tab)