Test-MtAuthenticationPolicyReferencedObjectsExist
SYNOPSIS
Checks if authentication method policies reference valid groups that exist in the tenant.
SYNTAX
Test-MtAuthenticationPolicyReferencedObjectsExist [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test checks if all groups referenced in authentication method policies still exist in the tenant. Authentication method policies can reference groups in their includeTargets configuration. If a group is deleted but still referenced in an authentication method policy, it may cause the policy to not apply as expected or result in unexpected behavior.
The test examines includeTargets for all authentication method configurations and validates that any group references are valid and the groups still exist in the tenant.
Learn more: https://learn.microsoft.com/entra/identity/authentication/concept-authentication-methods
EXAMPLES
EXAMPLE 1
Test-MtAuthenticationPolicyReferencedObjectsExist