{
  "schemaVersion": "1.0",
  "code": "50055",
  "name": "InvalidPasswordExpiredPassword",
  "title": "AADSTS50055: Password expired",
  "url": "https://brambrinkmeier.com/entra/aadsts/50055/",
  "alternates": {
    "markdown": "https://brambrinkmeier.com/entra/aadsts/50055.md",
    "json": "https://brambrinkmeier.com/api/aadsts/50055.json",
    "html": "https://brambrinkmeier.com/entra/aadsts/50055/"
  },
  "description": "AADSTS50055: the password has expired. Routine for users, but during a spray it suggests the attacker may hold a correct password. KQL included.",
  "summary": "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.",
  "inMicrosoftReference": true,
  "unlistedChecked": null,
  "meaningText": "Microsoft's description:\n\n> **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.\n\nThe user is sent to change the password before they can continue.",
  "sections": [
    {
      "heading": "What does AADSTS50055 mean?",
      "text": "Microsoft's description:\n\n> **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.\n\nThe user is sent to change the password before they can continue."
    },
    {
      "heading": "Reproduced in the lab",
      "text": "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:\n\n> AADSTS50055: The password is expired.\n\nThat confirms the code and its wording at the token endpoint.\n\nThe same attempt in the lab tenant's sign-in log (Entra admin center, interactive user sign-ins), with identifiers left out:\n\n| Field | Value in the lab row |\n|---|---|\n| Status | Interrupted |\n| Sign-in error code | 50055 |\n| 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. |\n| Authentication requirement | Single-factor authentication |\n| Conditional Access | Not Applied |\n| User type | Member |\n\nThe 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."
    },
    {
      "heading": "Is it an attack?",
      "text": "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.\n\nThat changes how you read it:\n\n| Pattern | Likely meaning |\n|---|---|\n| A user on their normal device and IP, followed by a password change and success | Routine expiry. Benign. |\n| 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. |\n| A 50055 from an unfamiliar country or hosting provider for a user who wasn't travelling | Someone else has this user's (old) password. |\n| 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. |\n\nExpect `ConditionalAccessStatus` = `notApplied` on 50055 rows. Conditional Access only runs after the first factor succeeds, and the sign-in stopped at the password stage."
    },
    {
      "heading": "How do I find it in my logs (KQL)?",
      "text": "All 50055 rows, with the source, so you can spot ones that don't fit the user:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"50055\"\n| project TimeGenerated, UserPrincipalName, IPAddress, LocationDetails, AppDisplayName,\n          ClientAppUsed, UserAgent\n| sort by TimeGenerated desc\n```\n\n50055 from an IP that was also spraying. These are the rows that matter:\n\n```kusto\nlet sprayIPs =\n    SigninLogs\n    | where TimeGenerated > ago(1d)\n    | where ResultType == \"50126\"\n    | summarize FailedUsers = dcount(UserPrincipalName) by IPAddress\n    | where FailedUsers >= 10\n    | project IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where ResultType == \"50055\"\n| where IPAddress in (sprayIPs)\n| project TimeGenerated, UserPrincipalName, IPAddress, ResultDescription, AppDisplayName, ClientAppUsed\n| sort by TimeGenerated asc\n```\n\n`ResultType` is a string column, so compare it with `\"50055\"`."
    },
    {
      "heading": "How do Conditional Access and MFA affect it?",
      "text": "- 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.\n- 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.\n- `AuthenticationRequirement` on the 50055 row says nothing about your MFA setup. MFA was never reached."
    },
    {
      "heading": "How do I fix AADSTS50055?",
      "text": "**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.\n\n**For admins:**\n1. Routine expiry: let the user reset through the prompt or self-service password reset.\n2. 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.\n3. Make sure the user has MFA registered, so a correct password alone isn't enough."
    }
  ],
  "microsoftWording": {
    "text": "**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.",
    "source": "Microsoft's error code reference, as quoted on the page",
    "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes"
  },
  "securityReading": {
    "category": {
      "id": "credentials",
      "label": "Credentials and lockout"
    },
    "kind": {
      "id": "failure",
      "label": "Failure"
    },
    "attackSignal": {
      "level": "medium",
      "label": "Medium: worth a look in context"
    },
    "mitre": [
      {
        "id": "T1110.003",
        "name": "Brute Force: Password Spraying",
        "url": "https://attack.mitre.org/techniques/T1110/003/"
      },
      {
        "id": "T1078.004",
        "name": "Valid Accounts: Cloud Accounts",
        "url": "https://attack.mitre.org/techniques/T1078/004/"
      }
    ],
    "tables": [
      "SigninLogs"
    ],
    "isItAnAttack": "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.\n\nThat changes how you read it:\n\n| Pattern | Likely meaning |\n|---|---|\n| A user on their normal device and IP, followed by a password change and success | Routine expiry. Benign. |\n| 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. |\n| A 50055 from an unfamiliar country or hosting provider for a user who wasn't travelling | Someone else has this user's (old) password. |\n| 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. |\n\nExpect `ConditionalAccessStatus` = `notApplied` on 50055 rows. Conditional Access only runs after the first factor succeeds, and the sign-in stopped at the password stage.",
    "conditionalAccess": {
      "heading": "How do Conditional Access and MFA affect it?",
      "text": "- 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.\n- 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.\n- `AuthenticationRequirement` on the 50055 row says nothing about your MFA setup. MFA was never reached."
    }
  },
  "kql": [
    {
      "title": null,
      "leadIn": "All 50055 rows, with the source, so you can spot ones that don't fit the user:",
      "query": "SigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"50055\"\n| project TimeGenerated, UserPrincipalName, IPAddress, LocationDetails, AppDisplayName,\n          ClientAppUsed, UserAgent\n| sort by TimeGenerated desc"
    },
    {
      "title": null,
      "leadIn": "50055 from an IP that was also spraying. These are the rows that matter:",
      "query": "let sprayIPs =\n    SigninLogs\n    | where TimeGenerated > ago(1d)\n    | where ResultType == \"50126\"\n    | summarize FailedUsers = dcount(UserPrincipalName) by IPAddress\n    | where FailedUsers >= 10\n    | project IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where ResultType == \"50055\"\n| where IPAddress in (sprayIPs)\n| project TimeGenerated, UserPrincipalName, IPAddress, ResultDescription, AppDisplayName, ClientAppUsed\n| sort by TimeGenerated asc"
    }
  ],
  "kqlSectionText": "All 50055 rows, with the source, so you can spot ones that don't fit the user:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"50055\"\n| project TimeGenerated, UserPrincipalName, IPAddress, LocationDetails, AppDisplayName,\n          ClientAppUsed, UserAgent\n| sort by TimeGenerated desc\n```\n\n50055 from an IP that was also spraying. These are the rows that matter:\n\n```kusto\nlet sprayIPs =\n    SigninLogs\n    | where TimeGenerated > ago(1d)\n    | where ResultType == \"50126\"\n    | summarize FailedUsers = dcount(UserPrincipalName) by IPAddress\n    | where FailedUsers >= 10\n    | project IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where ResultType == \"50055\"\n| where IPAddress in (sprayIPs)\n| project TimeGenerated, UserPrincipalName, IPAddress, ResultDescription, AppDisplayName, ClientAppUsed\n| sort by TimeGenerated asc\n```\n\n`ResultType` is a string column, so compare it with `\"50055\"`.",
  "fix": {
    "short": "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.",
    "steps": "**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.\n\n**For admins:**\n1. Routine expiry: let the user reset through the prompt or self-service password reset.\n2. 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.\n3. Make sure the user has MFA registered, so a correct password alone isn't enough."
  },
  "labReproduced": {
    "date": "2026-10-25",
    "method": "ROPC token request against a lab tenant",
    "scenario": "Must change password at next sign-in",
    "message": "AADSTS50055: The password is expired.",
    "logCaptured": "2026-10-30",
    "kqlTested": "2026-10-30"
  },
  "labSectionText": "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:\n\n> AADSTS50055: The password is expired.\n\nThat confirms the code and its wording at the token endpoint.\n\nThe same attempt in the lab tenant's sign-in log (Entra admin center, interactive user sign-ins), with identifiers left out:\n\n| Field | Value in the lab row |\n|---|---|\n| Status | Interrupted |\n| Sign-in error code | 50055 |\n| 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. |\n| Authentication requirement | Single-factor authentication |\n| Conditional Access | Not Applied |\n| User type | Member |\n\nThe 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.",
  "labRuns": [
    {
      "date": "2026-10-25",
      "run": null,
      "method": "ROPC token request against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/38",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-30",
      "run": "round 4",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/67",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-30",
      "run": "round 5",
      "method": "token-endpoint requests against a lab tenant, using lab-created test apps",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/69",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-30",
      "run": "round 5 (first attempt)",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/68",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-30",
      "run": "round 6",
      "method": "token-endpoint requests against a lab tenant, using lab-created test apps",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/70",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-30",
      "run": "round 7",
      "method": "token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/71",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-30",
      "run": null,
      "method": "ROPC and other token-endpoint requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/66",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-31",
      "run": "round 8",
      "method": "token-endpoint and device-code requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/72",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    },
    {
      "date": "2026-10-31",
      "run": "round 9",
      "method": "token-endpoint and device-code requests against a lab tenant",
      "issue": "https://github.com/GrantZero604/Brambrinkmeier.com/issues/73",
      "scenario": "Must change password at next sign-in",
      "expected": "50055 / 50144 / 50173",
      "got": "50055",
      "matchedExpectation": true,
      "message": "AADSTS50055: The password is expired."
    }
  ],
  "verification": "lab-reproduced",
  "related": [
    "50126",
    "50053",
    "50057",
    "50076",
    "53003",
    "50052",
    "50054",
    "50125",
    "50133"
  ],
  "coveredBy": [
    {
      "title": "How to detect password spraying in Microsoft Entra ID (with KQL)",
      "url": "https://brambrinkmeier.com/guides/detect-password-spray-entra-id/"
    }
  ],
  "sources": [
    {
      "title": "Microsoft Entra authentication and authorization error codes",
      "url": "https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes"
    },
    {
      "title": "Password spray investigation (Microsoft incident response playbook)",
      "url": "https://learn.microsoft.com/en-us/security/operations/incident-response-playbook-password-spray"
    },
    {
      "title": "Revoke user access in Microsoft Entra ID",
      "url": "https://learn.microsoft.com/en-us/entra/identity/users/users-revoke-access"
    },
    {
      "title": "SigninLogs table reference (Azure Monitor)",
      "url": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs"
    }
  ],
  "published": null,
  "lastUpdated": "2026-10-30",
  "lastVerified": null,
  "license": "CC BY 4.0",
  "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
  "licenseNote": "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.",
  "attribution": "Bram Brinkmeier, \"AADSTS50055: Password expired\", https://brambrinkmeier.com/entra/aadsts/50055/ (CC BY 4.0)",
  "microsoftErrorLookup": "https://login.microsoftonline.com/error?code=50055"
}
