Test-MtCaReferencedObjectsExist
SYNOPSISโ
Checks if any conditional access policies reference non-existent users, groups, or roles.
SYNTAXโ
Test-MtCaReferencedObjectsExist [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTIONโ
This test checks if all users, groups, and roles referenced in conditional access policies still exist in the tenant. Non-existent or deleted objects in conditional access policies can lead to unexpected behavior and security gaps. When a user, group, or role is deleted but still referenced in a policy, it may cause the policy to not apply as expected.
The test examines:
- Include/exclude users in conditional access policies
- Include/exclude groups in conditional access policies
- Include/exclude roles in conditional access policies (role definition IDs)
Learn more: https://learn.microsoft.com/entra/identity/conditional-access/concept-conditional-access-users-groups
EXAMPLESโ
EXAMPLE 1โ
Test-MtCaReferencedObjectsExist
PARAMETERSโ
-ProgressActionโ
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersโ
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTSโ
OUTPUTSโ
System.Booleanโ
NOTESโ
RELATED LINKSโ
https://maester.dev/docs/commands/Test-MtCaReferencedObjectsExist