Entra ID sign-in error

AADSTS530032: Blocked by a tenant security policy

AADSTS530032 means a security policy blocked the request. Microsoft's sources disagree on which policy; the three readings and what to check for each.

Last updated Checked against Microsoft Learn on Look up another code

AADSTS530032

MFA and Conditional AccessWho fixes it:Tenant adminUser's home tenant

The tenant admin has configured a security policy that blocks this request.

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

What it means

Microsoft's sources disagree. The error code list says a tenant-level security policy set by the admin blocked the request. Microsoft's live error lookup says the user was blocked because of risk in their home tenant. A Microsoft support article for Azure Virtual Desktop says it can be security defaults, a Conditional Access policy that blocks access, or another tenant-level restriction.

Fix it: tenant admins

  1. Open the failed sign-in in the sign-in logs and check its Conditional Access tab for a blocking policy.
  2. Check whether security defaults are on, under Entra ID > Overview > Properties. Security defaults also have a code of their own, AADSTS530035.
  3. Guest blocked for risk: a guest's user risk is assessed in their home tenant, and the resource tenant cannot dismiss or remediate it. The home tenant's admin resets the password or dismisses the risk.

Fix it: the person signing in

  1. If you are a guest blocked for risk, reset your password in your own organisation's password reset portal, then try again. Otherwise contact your IT team.

Related codes

Microsoft sources

Find who is hitting AADSTS530032

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 == "530032"
| 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 530032 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.

    The tenant admin has configured a security policy that blocks this request.

    BlockedBySecurityDefaults - Access has been blocked by security defaults.

    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. S68. Microsoft (login.microsoftonline.com), Microsoft's live error code lookup. Retrieved 2026-11-25.

    User blocked due to risk on home tenant.

  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.

    This control can be Security Defaults, a Conditional Access policy that blocks access, or another tenant-level restriction. It's not exclusively Security Defaults.

  4. S57. Microsoft (Microsoft Learn), Configure Security Defaults for Microsoft Entra ID. Retrieved 2026-11-25.

    Browse to Entra ID > Overview > Properties.

  5. S58. Microsoft (Microsoft Learn, Microsoft Entra ID Protection), Microsoft Entra ID Protection for B2B Users. Retrieved 2026-11-25.

    The user risk for B2B collaboration users is evaluated at their home directory.

    Administrators cannot dismiss or remediate a risky B2B collaboration user in their resource directory.

    Go to the Password reset portal and initiate the password reset.

  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