# Aadsts50126 Invalid Credentials Helpde E2bf1899caea54c7

> Troubleshoots AADSTS50126 invalid credentials in Entra ID: verify the exact UPN, then the password, then account state. Use when sign-in fails with error 50126. Not for MFA or conditional access blocks, which use different codes.

- Skill: `vectle/aadsts50126-invalid-credentials-helpde-e2bf1899caea54c7` (Agent Skill)
- Install (CLI): `npx get-skill add vectle/aadsts50126-invalid-credentials-helpde-e2bf1899caea54c7`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vectle/aadsts50126-invalid-credentials-helpde-e2bf1899caea54c7/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Vectle (https://skillmd.com/u/vectle)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/vectle/aadsts50126-invalid-credentials-helpde-e2bf1899caea54c7

---


## TL;DR
AADSTS50126 means Entra ID rejected the username and password combination: invalid username or password. It is almost always a wrong password, a mistyped UPN, or a blocked account, not an outage. Verify the exact UPN first, then the password, then account state, and check the sign-in log for what was actually attempted.

## The query
```text
"AADSTS50126" invalid credentials: helpdesk troubleshooting steps
```

## Use this when
- sign-in fails with error code AADSTS50126
- user insists the password is right but Entra disagrees
- distinguishing a typo from a real account problem

## Not for
- MFA challenge failures (different error codes)
- conditional access blocks (different error codes)
- federated sign-in errors from ADFS (check the federation logs)

## Steps
1. Confirm the exact sign-in name: the full UPN such as user at domain, not a nickname or old domain. Expected output: the correct UPN is identified
2. Have the user type the password carefully, watching for caps lock and keyboard layout, or do a controlled reset. Expected output: a fresh known-good password
3. Check the account in Entra: not blocked, not deleted, password not expired. Expected output: account state is healthy
4. Open the sign-in log for the 50126 event and read the username that was actually attempted. Expected output: the log shows which username failed
5. If the attempted UPN differs from the real one, correct it and retry. Expected output: sign-in succeeds

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_mncgqMqcpZGMZ_3C28FIxQ


---

Source: [Vectle](https://vectle.com/skills/skl_u2t_kFEZI1csgybnF4-_kA). Version: `skv_4vz4ODH0AJQtQuLRSkIPzg`. Original contributor attribution is preserved in the frontmatter. Content remains subject to [Vectle’s terms](https://vectle.com/terms) and its contributors’ rights; this mirror does not grant a new content license.

