Test-MtPrivPermanentDirectoryRole
SYNOPSIS
Section titled “SYNOPSIS”Checks if Permanent Assignments for Entra ID roles exists
SYNTAX
Section titled “SYNTAX”Test-MtPrivPermanentDirectoryRole [[-FilteredAccessLevel] <String[]>] [-FilterPrincipal] <Object[]> [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “DESCRIPTION”GET /beta/roleManagement/directory/roleAssignments?$expand=principal
EXAMPLES
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”Test-MtPrivPermanentDirectoryRole -FilteredAccessLevel "ControlPlane" -FilterPrincipal "ExternalUser"PARAMETERS
Section titled “PARAMETERS”-FilteredAccessLevel
Section titled “-FilteredAccessLevel”Filter based on Enterprise Access Model Tiering. Can be ‘ControlPlane’ and/or ‘ManagementPlane’.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False-FilterPrincipal
Section titled “-FilterPrincipal”Filter based on principal types. Accepted values are ‘ExternalUser’, ‘HybridUser’, ‘ServicePrincipalClientSecret’, ‘ServicePrincipalObject’ and/or ‘UserMailbox’.
Type: Object[]Parameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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
Section titled “INPUTS”OUTPUTS
Section titled “OUTPUTS”System.Boolean
Section titled “System.Boolean”RELATED LINKS
Section titled “RELATED LINKS”https://maester.dev/docs/commands/Test-MtPrivPermanentDirectoryRole