Library

Guides Quick Fixes Scripts Find a Guide

Tools

Error Decoder Assessment Baselines Free Tools Service status What's Changed

More

AI Certifications For MSPs Recommended Gear Field Kit FAQ About Contact Get Assessment

Investigate and Remediate Risky Users and Risky Sign-ins with ID Protection

EntraReady Guides · Practical Microsoft 365 & Entra ID
Last reviewed:
Last verified against Microsoft Learn:

Microsoft Entra ID Protection flags sign-ins and accounts that look compromised (leaked credentials, atypical travel, password spray, anomalous tokens and more) and rolls them up into a user risk level (Remediate risks (opens in a new tab)). This guide is about working those risk reports: triage, the right feedback action, remediation, and unblocking. For reading one sign-in log entry end to end, see Investigate a sign-in with the sign-in logs.

Use it when: you get a "Users at risk detected" email, a user is blocked by a risk policy, or you're setting up a regular risk review for a tenant you manage.

Before you start

The three reports

Open ID Protection > Dashboard in the Microsoft Entra admin center, then pick a report (Risk reports (opens in a new tab)):

Report What it shows Data window
Risky users Users with risky sign-ins or account-level risk such as leaked credentials, and their risk history Current state
Risky sign-ins Interactive and non-interactive sign-ins that are at risk, confirmed, dismissed or remediated; app, CA policies, MFA details, device and location Past 30 days
Risk detections Each detection with type, attack type (MITRE ATT&CK), state and source Past 90 days

All three export to CSV or JSON.

Step by step

  1. Triage. Start on the dashboard, then the reports. In the sign-in logs, look for the same IP, location or user agent on other accounts, and check what the user accessed or changed (Initial triage (opens in a new tab)).
  2. Contain first if it looks real. If you suspect the attacker can act as the user, require a password reset and MFA, or block the user and revoke all refresh and access tokens (Initial triage (opens in a new tab)).
  3. Check the activity against the user's normal pattern: app, device (registered or compliant), location, IP address and user agent. Contact the user to confirm, keeping in mind that their email or Teams might be compromised (Investigation framework (opens in a new tab)).
  4. Give feedback with the right action (Risky sign-ins actions (opens in a new tab)):
    • Confirm sign-in compromised: a true positive. It stays risky until remediated.
    • Confirm sign-in safe: a false positive. Similar sign-ins shouldn't be flagged in future.
    • Dismiss sign-in risk: a benign true positive, such as a known penetration test. Similar sign-ins keep being evaluated.
  5. Follow the detection-specific playbook. For example, atypical travel from a sanctioned VPN: confirm safe and add the VPN range to named locations. Leaked credentials detections are always high risk, so investigate right away. Password spray detections fire only when a password matched (Investigate specific detections (opens in a new tab)).
  6. Remediate. After Confirm compromised, if no policy already handled it: request a password change, block the user if the attacker can reset the password or complete MFA, revoke refresh tokens (opens in a new tab), disable compromised devices, and revoke access tokens if you use continuous access evaluation (Confirm a user to be compromised (opens in a new tab)). To issue a temporary password from ID Protection, select the user in Risky users > Reset password. That needs both Security Operator and User Administrator (Generate a temporary password (opens in a new tab)).
  7. Automate self-remediation with Conditional Access. Microsoft recommends a user risk policy at High with Require risk remediation (this auto-selects Require authentication strength and sign-in frequency Every time), and a sign-in risk policy requiring MFA at Medium and High. Start both in report-only (Microsoft recommendations (opens in a new tab)). For the full Conditional Access rollout, see the Conditional Access baseline.

Report-first PowerShell

Read-only. Scopes: IdentityRiskyUser.Read.All for risky users and IdentityRiskEvent.Read.All for risk detections (List riskyUsers (opens in a new tab), List riskDetections (opens in a new tab)). Needs Microsoft Entra ID P2.

Connect-MgGraph -Scopes "IdentityRiskyUser.Read.All","IdentityRiskEvent.Read.All"
# Users currently at risk
Get-MgRiskyUser -All -Filter "riskState eq 'atRisk'" |
Select-Object UserPrincipalName, RiskLevel, RiskState, RiskDetail, RiskLastUpdatedDateTime |
Sort-Object RiskLevel | Export-Csv .\risky-users.csv -NoTypeInformation
# Recent detections (filter client-side to keep the query simple)
Get-MgRiskDetection -All |
Where-Object { $_.DetectedDateTime -gt (Get-Date).AddDays(-7) } |
Select-Object UserPrincipalName, RiskEventType, RiskLevel, RiskState, IPAddress, DetectedDateTime |
Export-Csv .\risk-detections-7d.csv -NoTypeInformation

riskState values include atRisk, confirmedCompromised, remediated, dismissed and confirmedSafe; riskLevel values include low, medium, high and hidden (riskyUser resource (opens in a new tab)). Dismissing via Graph (POST /identityProtection/riskyUsers/dismiss) sets risk to none, so keep that as a deliberate, reviewed step, not part of a report script (riskyUser: dismiss (opens in a new tab)).

Gotchas

Check it worked

Unblocking a user

Have the user sign in from a familiar location or device, which can clear sign-in risk automatically, or temporarily exclude them from the policy while you remediate (Unblock users (opens in a new tab)).

Related on EntraReady: Investigate a sign-in with the sign-in logs, Stop MFA push fatigue, Conditional Access baseline, Named locations and country blocks, Break-glass accounts.

← All Guides

Is this still accurate?

Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.

Reports go to the EntraReady inbox. Please don’t include passwords or tenant secrets.