Adaptive Protection and the insider risk condition in Conditional Access
26 January 2026 · Samantha Kloos-KilkensMost Conditional Access policies react to who you are, where you sign in from and what device you use. The insider risk condition adds something Entra can't see on its own: how a user has been handling data. Purview Insider Risk Management assigns users a risk level, Adaptive Protection shares that level with DLP and Conditional Access, and your policies tighten for the few users who need it while everyone else carries on as normal. This post is about how the two halves fit together, and what the quick setup creates on your behalf.
Photo: Imkara Visual on Unsplash
Where the risk level comes from
These levels are not the same as the Low, Medium and High severity of insider risk alerts, which is easy to mix up when you read about it for the first time. They also aren't permanent: a level expires after the Insider risk level timeframe (7 days by default), or earlier when the alert is dismissed or the case is resolved, and the policies that depend on it then stop applying.
One thing to know before you show this to your works council or privacy officer: Insider Risk Management can show pseudonymised user names, but user names aren't pseudonymised in Conditional Access or DLP. An admin looking at the sign-in logs sees who was blocked.
Licensing also comes from both sides: the insider risk condition in Conditional Access needs Microsoft Entra ID P2, and Adaptive Protection needs an Insider Risk Management licence, for example Microsoft 365 E5 or E5 Compliance.
What the quick setup creates
- an insider risk policy with default settings
- two DLP policies, one for endpoints and one for Teams and Exchange, which block for Elevated and audit for Moderate and Minor, but start in test mode
- a data lifecycle management policy that preserves content deleted by Elevated users for 120 days
- a Conditional Access policy in report-only mode that blocks Office 365 apps for Elevated users, with B2B direct connect users, service provider users and other external users excluded
The Conditional Access side
For Elevated, block access. That can be Office 365 as a whole, or more targeted: sites with a specific sensitivity label through an authentication context, which also stops Copilot from grounding answers on those sites for that user. For Moderate, require acceptance of terms of use when signing in to admin portals, as a reminder rather than a barrier. For Minor, a policy in report-only mode gives you visibility without affecting anyone.
The usual Conditional Access hygiene applies. Exclude your break-glass accounts. Start in report-only and use the report-only results and the insights workbook to see who would have been affected. And remember that a block on Office 365 for an Elevated user is a real disruption for someone who may turn out to be a false positive: tune the insider risk policy first, and only then enforce.
Creating the policy with Graph
insiderRiskLevels on the policy conditions, with the values minor, moderate and elevated. This creates the Elevated block in report-only mode: param(
[Parameter(Mandatory = $true)]
[string[]]$BreakGlassUpn
)
Connect-MgGraph -Scopes "Policy.Read.All", "Policy.ReadWrite.ConditionalAccess", "User.Read.All" -NoWelcome
$excludeIds = foreach ($upn in $BreakGlassUpn) {
(Invoke-MgGraphRequest GET "v1.0/users/$($upn)?`$select=id").id
}
$body = @{
displayName = "CA - Block Office 365 for elevated insider risk"
state = "enabledForReportingButNotEnforced"
conditions = @{
users = @{
includeUsers = @("All")
excludeUsers = @($excludeIds)
excludeGuestsOrExternalUsers = @{
guestOrExternalUserTypes = "b2bDirectConnectUser,otherExternalUser,serviceProvider"
externalTenants = @{
"@odata.type" = "#microsoft.graph.conditionalAccessAllExternalTenants"
membershipKind = "all"
}
}
}
applications = @{ includeApplications = @("Office365") }
clientAppTypes = @("all")
insiderRiskLevels = "elevated"
}
grantControls = @{ operator = "OR"; builtInControls = @("block") }
} | ConvertTo-Json -Depth 6
Invoke-MgGraphRequest POST "v1.0/identity/conditionalAccess/policies" -Body $body -ContentType "application/json"
Turning it off again
Open Conditional Access in a tenant where Adaptive Protection is on, look for a policy that uses the Insider risk condition, and check whether its exclusions match the ones on your other block policies.
The script from this post is also on GitHub, in purview-scripts.
Sources
- Help dynamically mitigate risks with Adaptive Protection (Microsoft Learn)
- Adaptive Protection configuration guide (Microsoft Learn)
- Block access for users with insider risk (Microsoft Learn)
- conditionalAccessConditionSet resource type (Microsoft Graph)
- Microsoft Entra recommendation: Insider Risk condition in Conditional Access (Microsoft Learn)