Get-MtUser
SYNOPSIS
Section titled “SYNOPSIS”Get a list of users from the tenant
SYNTAX
Section titled “SYNTAX”Get-MtUser [[-Count] <Int32>] [[-UserType] <String>] [[-MemberOfRole] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “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
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”Get-MtUser -Count 5 -UserType Member# Get 5 Member users from the tenant.PARAMETERS
Section titled “PARAMETERS”-Count
Section titled “-Count”The number of users to retrieve. Default is 1.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: 1Accept pipeline input: FalseAccept wildcard characters: False-UserType
Section titled “-UserType”The type of users to retrieve. Default is Member. Valid values are Member, Guest, Admin.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 2Default value: MemberAccept pipeline input: FalseAccept wildcard characters: False-MemberOfRole
Section titled “-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: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept 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.