Get-MtRole
Synopsis
Section titled “Synopsis”Returns all the role definitions in the tenant.
Syntax
Section titled “Syntax”Get-MtRole [-CisaHighlyPrivilegedRoles] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”Returns all the role definitions in the tenant.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-MtRoleParameters
Section titled “Parameters”-CisaHighlyPrivilegedRoles
Section titled “-CisaHighlyPrivilegedRoles”Filters the returned roles to only those described by CISA as highly privieleged.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept 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.