{
  "schemaVersion": "1.0",
  "code": "50079",
  "name": "UserStrongAuthEnrollmentRequired",
  "title": "AADSTS50079: User must register for MFA",
  "url": "https://brambrinkmeier.com/entra/aadsts/50079/",
  "alternates": {
    "markdown": "https://brambrinkmeier.com/entra/aadsts/50079.md",
    "json": "https://brambrinkmeier.com/api/aadsts/50079.json",
    "html": "https://brambrinkmeier.com/entra/aadsts/50079/"
  },
  "description": "AADSTS50079: the user must register for MFA. Normal for new users; from an attacker IP, they could register their own method. KQL included.",
  "summary": "AADSTS50079 means MFA is required but the user has not registered security info yet, so Entra ID sends them to register. For a real new user it is expected. If the sign-in came from an attacker IP, the attacker has a correct password and is being invited to register their own MFA method on the account.",
  "inMicrosoftReference": true,
  "unlistedChecked": null,
  "meaningText": "Microsoft's description:\n\n> **UserStrongAuthEnrollmentRequired**: Due to a configuration change made by the admin such as a Conditional Access policy, per-user enforcement, or because the user moved to a new location, the user is required to use multifactor authentication. Either a managed user needs to register security info to complete multifactor authentication, or a federated user needs to get the multifactor claim from the federated identity provider.\n\nMicrosoft's password spray playbook lists it as *\"50079 - user needs to register security info\"*. The password was accepted. The account has no MFA method, so the next screen is registration.",
  "sections": [
    {
      "heading": "What does AADSTS50079 mean?",
      "text": "Microsoft's description:\n\n> **UserStrongAuthEnrollmentRequired**: Due to a configuration change made by the admin such as a Conditional Access policy, per-user enforcement, or because the user moved to a new location, the user is required to use multifactor authentication. Either a managed user needs to register security info to complete multifactor authentication, or a federated user needs to get the multifactor claim from the federated identity provider.\n\nMicrosoft's password spray playbook lists it as *\"50079 - user needs to register security info\"*. The password was accepted. The account has no MFA method, so the next screen is registration."
    },
    {
      "heading": "Is it an attack?",
      "text": "For a new hire, a freshly enabled policy, or a user who never registered, 50079 is the normal path into MFA. **It becomes the most important row in an investigation when the sign-in is not the user's.**\n\nWhoever completes registration from that session chooses the MFA method. If an attacker with a sprayed or phished password lands on an unregistered account, 50079 is the moment they can add their own authenticator app or phone, and from then on MFA protects the attacker, not the user. This is reasoning from how registration works, not a Microsoft statement, but it is why the playbook lists the code.\n\n| Pattern | Likely meaning |\n|---|---|\n| 50079 for a new or newly in-scope user, from a known office or home IP | Expected registration. Benign. |\n| 50079 from an IP that also produced **50126** failures against other users | A spray found a working password on an account with no MFA. |\n| 50079 from an unfamiliar IP or country, then a security info registration event, then `0` | **Likely account takeover with attacker-registered MFA** (T1098.005). |\n| 50079 for a long-standing account that should already be registered | Check whether its methods were deleted, and by whom. |"
    },
    {
      "heading": "How do I find it in my logs (KQL)?",
      "text": "50079 from IPs that were failing passwords against other users the same day:\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 >= 5\n    | project IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where ResultType == \"50079\"\n| where IPAddress in (sprayIPs)\n| project TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName,\n          ClientAppUsed, UserAgent\n| sort by TimeGenerated asc\n```\n\n50079 followed within an hour by a security info registration in `AuditLogs` for the same user:\n\n```kusto\nlet interrupts =\n    SigninLogs\n    | where TimeGenerated > ago(7d)\n    | where ResultType == \"50079\"\n    | project InterruptTime = TimeGenerated,\n              UserPrincipalName = tolower(UserPrincipalName),\n              SigninIP = IPAddress;\nAuditLogs\n| where TimeGenerated > ago(7d)\n| where OperationName has \"security info\"\n| extend UserPrincipalName = tolower(tostring(InitiatedBy.user.userPrincipalName)),\n         AuditIP = tostring(InitiatedBy.user.ipAddress)\n| join kind=inner interrupts on UserPrincipalName\n| where TimeGenerated between (InterruptTime .. (InterruptTime + 1h))\n| project InterruptTime, RegisteredAt = TimeGenerated, UserPrincipalName,\n          SigninIP, AuditIP, OperationName, Result\n| sort by RegisteredAt desc\n```\n\nVerify the exact `OperationName` values for security info registration in your own workspace before relying on the `has \"security info\"` filter, and check that `InitiatedBy` carries the user and IP fields for those events. The threshold of 5 failed users is a starting point, not a Microsoft number."
    },
    {
      "heading": "How do Conditional Access and MFA affect it?",
      "text": "- 50079 means an MFA requirement applies but the account can't meet it yet. The requirement is not the problem. Who gets to satisfy it first is.\n- Microsoft documents that an interrupted sign-in *\"appears on the logs but shows **Not applied** for Conditional Access.\"*\n- Conditional Access can protect the registration step itself, for example by only allowing security info registration from trusted locations or compliant devices. When a policy blocks registration, users see **53010** instead.\n- Federated users get this code when the federated identity provider didn't send the MFA claim. In that case registration in Entra ID is not the fix."
    },
    {
      "heading": "How do I fix AADSTS50079?",
      "text": "**For the user:** register your MFA method from a device and network you trust. If you get a registration prompt you didn't expect, stop and contact IT.\n\n**For admins:**\n1. For every 50079 from an IP the user doesn't use, check the account's registered methods. Remove any you can't tie to the user.\n2. If an attacker registered a method, reset the password, remove the method, and revoke sessions (`Revoke-MgUserSignInSession`).\n3. Protect security info registration with Conditional Access so it can only happen from trusted locations or devices.\n4. Don't leave accounts unregistered for long. An account with a password and no MFA method is registered by whoever signs in first."
    }
  ],
  "microsoftWording": {
    "text": "**UserStrongAuthEnrollmentRequired**: Due to a configuration change made by the admin such as a Conditional Access policy, per-user enforcement, or because the user moved to a new location, the user is required to use multifactor authentication. Either a managed user needs to register security info to complete multifactor authentication, or a federated user needs to get the multifactor claim from the federated identity provider.",
    "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": "mfa",
      "label": "Multifactor authentication"
    },
    "kind": {
      "id": "interrupt",
      "label": "Interrupt (an expected extra step, not a failure)"
    },
    "attackSignal": {
      "level": "high",
      "label": "High: often seen in attacks"
    },
    "mitre": [
      {
        "id": "T1078.004",
        "name": "Valid Accounts: Cloud Accounts",
        "url": "https://attack.mitre.org/techniques/T1078/004/"
      },
      {
        "id": "T1098.005",
        "name": "Account Manipulation: Device Registration",
        "url": "https://attack.mitre.org/techniques/T1098/005/"
      }
    ],
    "tables": [
      "SigninLogs"
    ],
    "isItAnAttack": "For a new hire, a freshly enabled policy, or a user who never registered, 50079 is the normal path into MFA. **It becomes the most important row in an investigation when the sign-in is not the user's.**\n\nWhoever completes registration from that session chooses the MFA method. If an attacker with a sprayed or phished password lands on an unregistered account, 50079 is the moment they can add their own authenticator app or phone, and from then on MFA protects the attacker, not the user. This is reasoning from how registration works, not a Microsoft statement, but it is why the playbook lists the code.\n\n| Pattern | Likely meaning |\n|---|---|\n| 50079 for a new or newly in-scope user, from a known office or home IP | Expected registration. Benign. |\n| 50079 from an IP that also produced **50126** failures against other users | A spray found a working password on an account with no MFA. |\n| 50079 from an unfamiliar IP or country, then a security info registration event, then `0` | **Likely account takeover with attacker-registered MFA** (T1098.005). |\n| 50079 for a long-standing account that should already be registered | Check whether its methods were deleted, and by whom. |",
    "conditionalAccess": {
      "heading": "How do Conditional Access and MFA affect it?",
      "text": "- 50079 means an MFA requirement applies but the account can't meet it yet. The requirement is not the problem. Who gets to satisfy it first is.\n- Microsoft documents that an interrupted sign-in *\"appears on the logs but shows **Not applied** for Conditional Access.\"*\n- Conditional Access can protect the registration step itself, for example by only allowing security info registration from trusted locations or compliant devices. When a policy blocks registration, users see **53010** instead.\n- Federated users get this code when the federated identity provider didn't send the MFA claim. In that case registration in Entra ID is not the fix."
    }
  },
  "kql": [
    {
      "title": null,
      "leadIn": "50079 from IPs that were failing passwords against other users the same day:",
      "query": "let sprayIPs =\n    SigninLogs\n    | where TimeGenerated > ago(1d)\n    | where ResultType == \"50126\"\n    | summarize FailedUsers = dcount(UserPrincipalName) by IPAddress\n    | where FailedUsers >= 5\n    | project IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where ResultType == \"50079\"\n| where IPAddress in (sprayIPs)\n| project TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName,\n          ClientAppUsed, UserAgent\n| sort by TimeGenerated asc"
    },
    {
      "title": null,
      "leadIn": "50079 followed within an hour by a security info registration in `AuditLogs` for the same user:",
      "query": "let interrupts =\n    SigninLogs\n    | where TimeGenerated > ago(7d)\n    | where ResultType == \"50079\"\n    | project InterruptTime = TimeGenerated,\n              UserPrincipalName = tolower(UserPrincipalName),\n              SigninIP = IPAddress;\nAuditLogs\n| where TimeGenerated > ago(7d)\n| where OperationName has \"security info\"\n| extend UserPrincipalName = tolower(tostring(InitiatedBy.user.userPrincipalName)),\n         AuditIP = tostring(InitiatedBy.user.ipAddress)\n| join kind=inner interrupts on UserPrincipalName\n| where TimeGenerated between (InterruptTime .. (InterruptTime + 1h))\n| project InterruptTime, RegisteredAt = TimeGenerated, UserPrincipalName,\n          SigninIP, AuditIP, OperationName, Result\n| sort by RegisteredAt desc"
    }
  ],
  "kqlSectionText": "50079 from IPs that were failing passwords against other users the same day:\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 >= 5\n    | project IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where ResultType == \"50079\"\n| where IPAddress in (sprayIPs)\n| project TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName,\n          ClientAppUsed, UserAgent\n| sort by TimeGenerated asc\n```\n\n50079 followed within an hour by a security info registration in `AuditLogs` for the same user:\n\n```kusto\nlet interrupts =\n    SigninLogs\n    | where TimeGenerated > ago(7d)\n    | where ResultType == \"50079\"\n    | project InterruptTime = TimeGenerated,\n              UserPrincipalName = tolower(UserPrincipalName),\n              SigninIP = IPAddress;\nAuditLogs\n| where TimeGenerated > ago(7d)\n| where OperationName has \"security info\"\n| extend UserPrincipalName = tolower(tostring(InitiatedBy.user.userPrincipalName)),\n         AuditIP = tostring(InitiatedBy.user.ipAddress)\n| join kind=inner interrupts on UserPrincipalName\n| where TimeGenerated between (InterruptTime .. (InterruptTime + 1h))\n| project InterruptTime, RegisteredAt = TimeGenerated, UserPrincipalName,\n          SigninIP, AuditIP, OperationName, Result\n| sort by RegisteredAt desc\n```\n\nVerify the exact `OperationName` values for security info registration in your own workspace before relying on the `has \"security info\"` filter, and check that `InitiatedBy` carries the user and IP fields for those events. The threshold of 5 failed users is a starting point, not a Microsoft number.",
  "fix": {
    "short": "User: register your MFA method from a device and network you trust. If you didn't expect the prompt, stop and contact IT. Admin: for a 50079 from an IP the user doesn't use, check the registered methods and remove any you can't tie to the user. Protect registration with Conditional Access.",
    "steps": "**For the user:** register your MFA method from a device and network you trust. If you get a registration prompt you didn't expect, stop and contact IT.\n\n**For admins:**\n1. For every 50079 from an IP the user doesn't use, check the account's registered methods. Remove any you can't tie to the user.\n2. If an attacker registered a method, reset the password, remove the method, and revoke sessions (`Revoke-MgUserSignInSession`).\n3. Protect security info registration with Conditional Access so it can only happen from trusted locations or devices.\n4. Don't leave accounts unregistered for long. An account with a password and no MFA method is registered by whoever signs in first."
  },
  "labReproduced": null,
  "labSectionText": null,
  "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "65001",
      "matchedExpectation": true,
      "message": "AADSTS65001: The user or administrator has not consented to use the application with ID '{app-id}' named 'lab-signin-client'. Send a"
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    },
    {
      "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": "Correct password (security defaults / MFA / consent decide)",
      "expected": "success / 50076 / 50079 / 65001 / 50072",
      "got": "success",
      "matchedExpectation": true,
      "message": ""
    }
  ],
  "verification": "documentation",
  "related": [
    "50076",
    "50072",
    "50125",
    "50126",
    "50074",
    "53003",
    "90072",
    "500121"
  ],
  "coveredBy": [
    {
      "title": "Azure CLI: \"Resource was disallowed by policy. Reasons: MFA is required\"",
      "url": "https://brambrinkmeier.com/guides/azure-cli-mfa-required-resource-disallowed-by-policy/"
    },
    {
      "title": "How to detect MFA fatigue (push bombing) in Microsoft Entra ID",
      "url": "https://brambrinkmeier.com/guides/detect-mfa-fatigue-entra-id/"
    },
    {
      "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": "Interactive user sign-ins",
      "url": "https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-interactive-sign-ins"
    },
    {
      "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-11",
  "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, \"AADSTS50079: User must register for MFA\", https://brambrinkmeier.com/entra/aadsts/50079/ (CC BY 4.0)",
  "microsoftErrorLookup": "https://login.microsoftonline.com/error?code=50079"
}
