# AADSTS50055: Password expired

Canonical: https://brambrinkmeier.com/entra/aadsts/50055/
By Bram Brinkmeier. JSON: https://brambrinkmeier.com/api/aadsts/50055.json

**Short answer:** AADSTS50055 means the user's password has expired, so Microsoft Entra ID ended the sign-in and offers a reset. For a real user it is routine. During a password spray it matters more: the wording implies the password entered was correct, just expired, so the attacker likely holds a valid credential.

**Fix:** User: change your password when prompted, or ask your admin to reset it. Tell your admin if you weren't signing in at that time. Admin: for routine expiry, let the user reset. From a spray IP or unfamiliar location, reset the password yourself, revoke sessions and make sure MFA is registered.

| Field | Value |
|---|---|
| Code | AADSTS50055 |
| Microsoft name | InvalidPasswordExpiredPassword |
| Category | Credentials and lockout |
| Type | Failure |
| Attack signal | Medium: worth a look in context |
| MITRE ATT&CK | [T1110.003](https://attack.mitre.org/techniques/T1110/003/) Brute Force: Password Spraying, [T1078.004](https://attack.mitre.org/techniques/T1078/004/) Valid Accounts: Cloud Accounts |
| Where to look | `SigninLogs` |
| In Microsoft's error reference | Yes |
| Verification | lab-reproduced (2026-10-25) |
| Last updated | 2026-10-30 |

## What does AADSTS50055 mean?

Microsoft's description:

> **InvalidPasswordExpiredPassword**: The password is expired. The user's password is expired, and therefore their login or session was ended. They will be offered the opportunity to reset it, or can ask an admin to reset it via Reset a user's password using Microsoft Entra ID.

The user is sent to change the password before they can continue.

## Reproduced in the lab

On 25 October 2026 an automated lab run sent a token request with the correct password for a test user who had to change the password at next sign-in. The run accepted 50055, 50144 or 50173 for this case; Entra returned `AADSTS50055` with this first line:

> AADSTS50055: The password is expired.

That confirms the code and its wording at the token endpoint.

The same attempt in the lab tenant's sign-in log (Entra admin center, interactive user sign-ins), with identifiers left out:

| Field | Value in the lab row |
|---|---|
| Status | Interrupted |
| Sign-in error code | 50055 |
| Additional details | The user's password is expired, and therefore their login or session was ended. They will be offered the opportunity to reset it, or may ask an admin to reset it. |
| Authentication requirement | Single-factor authentication |
| Conditional Access | Not Applied |
| User type | Member |

The test user had **must change password at next sign-in** set, not an expired password, yet the log row says the password is expired. In the logs the two look the same, so check the user's password policy and `lastPasswordChangeDateTime` before assuming a real expiry. The KQL below was run on the lab rows ([how](https://brambrinkmeier.com/methodology/)). The first query found both lab rows. The spray follow-up returned nothing as written, as expected on a lab sample this small; with the spray threshold lowered to 1 it found both rows.

## Is it an attack?

Microsoft's password spray playbook lists *"50055 - Password expired"* among the sign-in events to review in a spray investigation. The playbook doesn't say why. The likely reason is an inference from the description: Entra tells the user the password is **expired**, not **wrong**. In practice that means the password entered was the right one. Compare 50126, where it was wrong.

That changes how you read it:

| Pattern | Likely meaning |
|---|---|
| A user on their normal device and IP, followed by a password change and success | Routine expiry. Benign. |
| A 50055 from an IP that also produced many 50126 across different users | The spray **found a correct password** for this account. Treat it as a compromised credential. |
| A 50055 from an unfamiliar country or hosting provider for a user who wasn't travelling | Someone else has this user's (old) password. |
| 50055 followed by a success from the same unfamiliar IP | The worst case. The attacker may have changed the password and signed in. Check the audit log for the password change. |

Expect `ConditionalAccessStatus` = `notApplied` on 50055 rows. Conditional Access only runs after the first factor succeeds, and the sign-in stopped at the password stage.

## How do I find it in my logs (KQL)?

All 50055 rows, with the source, so you can spot ones that don't fit the user:

```kusto
SigninLogs
| where TimeGenerated > ago(7d)
| where ResultType == "50055"
| project TimeGenerated, UserPrincipalName, IPAddress, LocationDetails, AppDisplayName,
          ClientAppUsed, UserAgent
| sort by TimeGenerated desc
```

50055 from an IP that was also spraying. These are the rows that matter:

```kusto
let sprayIPs =
    SigninLogs
    | where TimeGenerated > ago(1d)
    | where ResultType == "50126"
    | summarize FailedUsers = dcount(UserPrincipalName) by IPAddress
    | where FailedUsers >= 10
    | project IPAddress;
SigninLogs
| where TimeGenerated > ago(1d)
| where ResultType == "50055"
| where IPAddress in (sprayIPs)
| project TimeGenerated, UserPrincipalName, IPAddress, ResultDescription, AppDisplayName, ClientAppUsed
| sort by TimeGenerated asc
```

`ResultType` is a string column, so compare it with `"50055"`.

## How do Conditional Access and MFA affect it?

- Conditional Access never ran on the 50055 row itself. It can still matter on the **next** step: if the attacker completes a password change and signs in, CA and MFA apply to that new sign-in.
- That makes MFA the barrier that matters here. In practice, an attacker holding this password still has to pass whatever CA and MFA require on the follow-up sign-in.
- `AuthenticationRequirement` on the 50055 row says nothing about your MFA setup. MFA was never reached.

## How do I fix AADSTS50055?

**For the user:** change your password when prompted, or ask your admin to reset it. If you weren't trying to sign in at that time, tell your admin.

**For admins:**
1. Routine expiry: let the user reset through the prompt or self-service password reset.
2. 50055 from a spray IP or an unfamiliar location: treat the old password as known to an attacker. Reset it yourself, revoke sessions (`Revoke-MgUserSignInSession`), and check whether that IP later got a success or an MFA prompt for the user.
3. Make sure the user has MFA registered, so a correct password alone isn't enough.

## Evidence

Reproduced in a lab tenant on 2026-10-25 (ROPC token request against a lab tenant; scenario: Must change password at next sign-in). First line returned:

> AADSTS50055: The password is expired.

Sign-in log row read: 2026-10-30. KQL run against the exported lab rows: 2026-10-30.

Lab-run rows naming this code (9; full list at https://brambrinkmeier.com/lab-runs.json):

| Date | Scenario | Expected | Got | Message (first line) |
|---|---|---|---|---|
| 2026-10-25 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-30 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-30 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-30 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-30 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-30 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-30 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-31 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |
| 2026-10-31 | Must change password at next sign-in | 50055 / 50144 / 50173 | 50055 | AADSTS50055: The password is expired. |

## Sources

1. [Microsoft Entra authentication and authorization error codes](https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes)
2. [Password spray investigation (Microsoft incident response playbook)](https://learn.microsoft.com/en-us/security/operations/incident-response-playbook-password-spray)
3. [Revoke user access in Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity/users/users-revoke-access)
4. [SigninLogs table reference (Azure Monitor)](https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs)

## Related codes

[AADSTS50126](https://brambrinkmeier.com/entra/aadsts/50126/), [AADSTS50053](https://brambrinkmeier.com/entra/aadsts/50053/), [AADSTS50057](https://brambrinkmeier.com/entra/aadsts/50057/), [AADSTS50076](https://brambrinkmeier.com/entra/aadsts/50076/), [AADSTS53003](https://brambrinkmeier.com/entra/aadsts/53003/), [AADSTS50052](https://brambrinkmeier.com/entra/aadsts/50052/), [AADSTS50054](https://brambrinkmeier.com/entra/aadsts/50054/), [AADSTS50125](https://brambrinkmeier.com/entra/aadsts/50125/), [AADSTS50133](https://brambrinkmeier.com/entra/aadsts/50133/)

## License and citation

CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). CC BY 4.0 covers the author's own text and classification fields. Quoted Microsoft error wording belongs to Microsoft, is quoted with its source and can change.

Cite as: Bram Brinkmeier, "AADSTS50055: Password expired", https://brambrinkmeier.com/entra/aadsts/50055/ (CC BY 4.0), last updated 2026-10-30.
