← Conditional Access Series
Microsoft Entra ID · Conditional Access Series · Part 05

How to automate secure password changes for risky users with Microsoft Entra ID Protection

Configure user-risk-based password remediation and validate recovery readiness.

Why this matters

When identity monitoring detects signs that an account may be compromised, waiting for a manual password reset can prolong the period in which stolen credentials remain useful. The SOC may also face a growing remediation queue if every eligible risky account requires manual intervention.

This guide uses Entra ID Protection and Conditional Access to require eligible risky users to complete secure password remediation, while preserving administrator-led recovery and incident response for cases that cannot safely self-remediate.

PRACTICAL WALKTHROUGH · PART 05 OF 06

What you'll accomplish

Configure user-risk-based password remediation and validate recovery readiness.

Microsoft Entra Conditional Access Series

Identity compromise can require intervention before users regain access to enterprise resources. Microsoft Entra ID Protection integrates risk signals with Conditional Access to automate eligible secure password remediation. User risk represents the probability of account compromise, while sign-in risk describes a particular authentication request. Use separate controls for those objectives.

1. Prerequisites and recovery readiness

Entra ID P2 for benefiting users, Conditional Access Administrator permissions, suitable MFA registration, SSPR eligibility and a validated incident response process are required. For hybrid users, verify the supported password writeback configuration and on-premises password policy. Review emergency access accounts, guests and users unable to self-remediate. Establish an administrator-assisted recovery process. Do not rely on an unverified authentication method after suspected compromise.

In Entra ID > Password reset, review SSPR scope and authentication method requirements; test a dedicated hybrid identity where relevant. Inspect Identity Protection > Risky users and risk detections to understand expected volumes before configuring thresholds.

2. Configure risk-based Conditional Access

Navigate to Entra ID > Conditional Access > Policies > New policy.

Configuration captures show a newer Microsoft Entra portal interface, with sensitive details removed. They illustrate the settings, not proof of a successful deployment or a January 2025 capture.

  1. Name: Require secure password change for risky users. The original policy title mentions High risk, but its actual selected levels are Medium and High.
    Risky-user password change policy overview
    Figure 1. Risky-user password change policy overview. Open full-size image
  2. Users: include All users, excluding designated emergency access and justified exceptions. Verify special recovery paths for guests and unsupported identities.
    All users included, with specific exclusions
    Figure 2. All users included, with specific exclusions. Open full-size image
  3. Target resources: All resources. The password-change grant is designed for all resources.
  4. Conditions > User risk: Configure Yes. Select High and Medium; leave Low unselected. Do not confuse user risk with sign-in risk. High-only is a reasonable starting threshold; medium adds remediation volume and requires validation.
    User risk: Medium and High selected
    Figure 3. User risk: Medium and High selected. Open full-size image
  5. Grant: Grant access > Require password change. MFA is automatically required as part of secure password change. Other grant controls are constrained by this design.
    Grant control: Require password change with MFA
    Figure 4. Grant control: Require password change with MFA. Open full-size image
  6. Session: Sign-in frequency > Every time. This mandatory setting is automatically applied for the password change control in current guidance. It does not mean every user changes passwords at every sign-in; risk applicability drives the remediation.
    Session control: sign-in frequency set to Every time
    Figure 5. Session control: sign-in frequency set to Every time. Open full-size image
  7. State: for a new policy use report-only evaluation as supported and controlled pilot testing. The captured policy is On.

3. Understand and test remediation

When the user is in scope and assessed at a selected risk level, Entra requires verification and a secure password change through the remediation flow. A routine password change outside that flow is not necessarily equivalent. If successful and eligible, the user risk can be remediated; access still depends on all applicable controls. If verification fails, initiate administrator-assisted recovery. Use dedicated lab identities and supported testing methods rather than provoking production compromise.

TestExpected outcome
No or Low user riskThis policy not applied
Medium or High user riskSecure password change required when enforced
Eligible user completes secure flowCheck risk history and subsequent access
User lacks suitable MFA/SSPRRemediation may fail; assisted recovery needed
Hybrid writeback failureInvestigate synchronisation/password restrictions
Explicit exceptionThis policy not applied; compensating controls needed

Monitor risky users and risk history, not just successful sign-in events. No actual tenant test outcomes are asserted here.

4. Track risky users in Sentinel

Enable the Entra risky-user diagnostic category. In the documented AADRiskyUsers schema, Id identifies the user at risk, while RiskLastUpdatedDateTime records the risk-state update. Select the latest retained risk snapshot per Id before filtering by risk level and state; filtering first could surface already-remediated users.

kusto
AADRiskyUsers
| where isnotempty(Id)
| summarize arg_max(RiskLastUpdatedDateTime, *) by Id
| where IsDeleted == false
| where RiskLevel in~ ("medium", "high")
| where RiskState in~ ("atRisk", "confirmedCompromised")
| project RiskLastUpdatedDateTime, TimeGenerated, Id,
    UserPrincipalName, RiskLevel, RiskState, RiskDetail, IsProcessing
| order by RiskLastUpdatedDateTime desc

The query is limited to retained snapshots in the selected workspace time range. Confirm current risk state, particularly records still being processed, in Entra Identity Protection. Use the risk history and actual recovery results to corroborate remediation; a password change or successful policy evaluation alone does not establish full incident containment. The query fields and KQL constructs were checked against the linked Microsoft documentation on 30 November 2026. These examples have not been executed against a live workspace. Use a workspace containing the required diagnostic tables, with sufficient retention and appropriate read permissions.

5. Incident response beyond password change

Investigate persistent risk and unexpected registered methods. Depending on evidence, revoke sessions, remove unauthorised authentication methods, review app consent, mailbox rules, endpoint and file activity, and temporarily disable access. Token theft and other persistence mechanisms are not comprehensively addressed by password changes. For suspected authentication method takeover, do not blindly allow self-service using the compromised method.

6. Current remediation options and rollout

Current Microsoft guidance also describes Require risk remediation, which supports password-based and passwordless users and can select a response based on risk type. It is a different control with its own requirements; evaluate separately. Avoid overlapping conflicting user-risk remediation policies. Review the threshold against analyst workload and failed recovery rates. Track outstanding risk, time to remediation and recurrence without claiming unmeasured improvements. If the new policy causes widespread legitimate disruption, use approved rollback and preserve other protections; investigate affected identities and restore after successful testing. Never dismiss actual compromise simply to restore access.

References

Continue the series

All six Conditional Access guides

← Part 04: Restrict access using named locations

Part 06: Block file downloads on unmanaged devices →