Skip to main content

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

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

https://maester.dev/docs/commands/Test-MtAuthenticationPolicyReferencedObjectsExist