Skip to main content
Version: 2.0.1 (preview)

Get-MtUser

SYNOPSISโ€‹

Get a list of users from the tenant

SYNTAXโ€‹

Get-MtUser [[-Count] <Int32>] [[-UserType] <String>] [[-MemberOfRole] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTIONโ€‹

This function retrieves a list of users from the tenant. You can specify the number of users to retrieve, the type of users (Member, Guest, Admin) and the role the users are member of.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Get-MtUser -Count 5 -UserType Member
# Get 5 Member users from the tenant.

PARAMETERSโ€‹

-Countโ€‹

The number of users to retrieve. Default is 1.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False

-UserTypeโ€‹

The type of users to retrieve. Default is Member. Valid values are Member, Guest, Admin.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Member
Accept pipeline input: False
Accept wildcard characters: False

-MemberOfRoleโ€‹

The role the users are member of. Default is None. Valid values are Global administrator, Application administrator, Authentication Administrator, Billing administrator, Cloud application administrator, Conditional Access administrator, Exchange administrator, Helpdesk administrator, Password administrator, Privileged authentication administrator, Privileged Role Administrator, Security administrator, SharePoint administrator, User administrator.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-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.Collections.ArrayListโ€‹

NOTESโ€‹

https://maester.dev/docs/commands/Get-MtUser