Edit

Share via


Get-TeamUser

Returns users of a team.

Syntax

Default (Default)

Get-TeamUser
    -GroupId <String>
    [-Role <String>]
    [<CommonParameters>]

Description

Returns an array containing the UPN, UserId, Name and Role of users belonging to an specific GroupId.

Examples

Example 1

Get-TeamUser -GroupId 2f162b0e-36d2-4e15-8ba3-ba229cecdccf -Role Owner

This example returns the UPN, UserId, Name, and Role of the owners of the specified GroupId.

Parameters

-GroupId

GroupId of the team

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Role

Filter the results to only users with the given role: Owner or Member.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.