Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Conditional Access policies should not include or exclude deleted groups

MT.1038MediumEntra IDConditional Access

Part of Maester · Entra ID · Conditional Access · All checks

Run this check
Invoke-Maester -TestId MT.1038

This test checks if there are any Conditional Access policies that target deleted security groups.

This usually happens when a group is deleted but is still referenced in a Conditional Access policy.

Deleted groups in your policy can lead to unexpected gaps. This may result in Conditional Access policies not being applied to the users you intended or the policy not being applied at all.

To fix this issue:

  • Open the impacted Conditional Access policy.
  • If the group is no longer needed, click Save to remove the referenced group from the policy.
  • If the group is still needed, update the policy to target a valid group.
Every attribute of this check
FieldValue
Test IDMT.1038
SeverityMedium
SuiteMaester
ProductEntra ID
FeatureConditional Access
AreaAccess control
Resource typeConditionalAccessPolicy
User impactLow
Implementation costLow
MITRE ATT&CKT1078.004 Cloud Accounts
PowerShell testTest-MtCaReferencedGroupsExist
ServicesGraph