Entra ID sign-in error

AADSTS50079: User must register for MFA

AADSTS50079 means MFA is required but the user has no security info registered. How users register, what admins can do, and which app flows cannot work.

Last updated Checked against Microsoft Learn on Look up another code

AADSTS50079

MFA and Conditional AccessWho fixes it:The userTenant adminApp developer

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.

Microsoft's description (UserStrongAuthEnrollmentRequired), from the Microsoft Entra error code reference

What it means

Multifactor authentication is required, but the user has not registered security info yet. For a federated user, the MFA claim has to come from the federated identity provider instead.

Fix it: tenant admins

  1. Ask the user to register, or enrol them with a Conditional Access registration campaign.
  2. Federated users: the MFA claim must come from your federated identity provider.

Fix it: app developers

  1. An app that uses the username and password flow (ROPC) cannot satisfy MFA. Use an interactive or device code flow instead.
  2. A middle-tier (on-behalf-of) service must pass the error and its claims challenge back to the client, so the user can complete it there.

Fix it: the person signing in

  1. Register your security info at https://aka.ms/mfasetup, or from Security info in My Account, then sign in again. You may also be asked to register when you sign in.

Related codes

Microsoft sources

Find who is hitting AADSTS50079

Sign-in logs record the code without the AADSTS prefix: as status/errorCode in Microsoft Graph S04 and as ResultType in the SigninLogs table in Log Analytics S05. The SigninLogs and Microsoft Graph queries below cover interactive sign-ins. Non-interactive sign-ins are in the AADNonInteractiveUserSignInLogs table, which documents the error code in ResultSignature S41. If you query that table, test ResultType as well. For one failed sign-in, paste its error message into the lookup to get queries for its Correlation ID.

Log Analytics (KQL), last 7 days

SigninLogs
| where TimeGenerated > ago(7d) and ResultType == "50079"
| summarize Failures = count(), Last = max(TimeGenerated) by UserPrincipalName, AppDisplayName
| sort by Failures desc

Microsoft Graph PowerShell, last 7 days

Connect-MgGraph -Scopes "AuditLog.Read.All"
$since = (Get-Date).ToUniversalTime().AddDays(-7).ToString("yyyy-MM-ddTHH:mm:ssZ")
Get-MgAuditLogSignIn -Filter "status/errorCode eq 50079 and createdDateTime ge $since" -All |
  Select-Object CreatedDateTime, UserPrincipalName, AppDisplayName, CorrelationId

Reading sign-in logs needs at least the Reports Reader role S06; the Graph call needs the AuditLog.Read.All permission S42, and -All returns every page of results S69.

Sources for this page

Microsoft's description is quoted from the Microsoft Entra error code reference; it is Microsoft's text and is not covered by our CC BY 4.0 licence. The cause and fix steps are our own wording, published under CC BY 4.0; each source below is the Microsoft page they rest on, with the passage we checked. Rules for every page are in the methodology.

  1. S01. Microsoft (Microsoft Learn), Microsoft Entra authentication and authorization error codes. Retrieved 2026-11-25.

    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.

    Error codes are subject to change at any time in order to provide more granular error messages

    Error codes and messages are subject to change. For the most current info, take a look at the

    You can also link directly to a specific error by adding the error code number to the URL

  2. S55. Microsoft (Microsoft Learn), Combined registration for SSPR and Microsoft Entra multifactor authentication. Retrieved 2026-11-25.

    Users can go to Security info, or they can select Security info from My Account.

    Users are asked to register when they use a resource that requires multifactor authentication.

  3. S53. Microsoft (Microsoft Learn, Azure Virtual Desktop), Troubleshoot single sign-on and Conditional Access for Azure Virtual Desktop - Azure Virtual Desktop. Retrieved 2026-11-25.

    Have the user register at https://aka.ms/mfasetup, or enroll them through Conditional Access registration campaigns.

  4. S52. Microsoft (Microsoft Learn), Acquire a token to call a web API using username and password (desktop app). Retrieved 2026-11-25.

    Your application cannot use the Username/Password grant.

  5. S24. Microsoft (Microsoft Learn), Microsoft identity platform and OAuth 2.0 On-Behalf-Of flow. Retrieved 2026-11-25.

    The middle-tier service should surface this error to the client application so that the client application can provide the user interaction to satisfy the Conditional Access policy.

  6. S04. Microsoft (Microsoft Learn, Microsoft Graph), signIn resource type. Retrieved 2026-11-25.

    Supports $filter (eq) on errorCode property.

    The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity.

  7. S05. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - SigninLogs. Retrieved 2026-11-25.

    Provides the 5-6 digit error code that's generated during a sign-in event. 0 indicates success; other values are failures.

    The identifier that's sent from the client when sign-in is initiated.

  8. S06. Microsoft (Microsoft Learn), How to troubleshoot sign-in errors. Retrieved 2026-11-25.

    Reports Reader is the least privileged role required to access the activity logs.

    any user can access their own sign-ins from https://mysignins.microsoft.com.

  9. S41. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - AADNonInteractiveUserSignInLogs. Retrieved 2026-11-25.

    Contains the error code, if any, for the sign-in operation.

  10. S42. Microsoft (Microsoft Learn, Microsoft Graph), List signIns. Retrieved 2026-11-25.

    To avoid having the request time out, apply the $filter parameter with a time range for which to get all sign-ins

    Sign-ins that are interactive in nature

  11. S69. Microsoft (Microsoft Learn, Microsoft Graph PowerShell), Get-MgAuditLogSignIn (Microsoft.Graph.Reports). Retrieved 2026-11-25.

    -All List all pages.

Back to the AADSTS Error Code Lookup · All 351 codes