Get-TeamUser

Note: This cmdlet is currently in Beta.

Returns users of a team.

Syntax

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

Examples

-------------------------- Example 1 --------------------------

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

Required Parameters

-GroupId

GroupId of the team

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
Applies to:Microsoft Teams

Optional Parameters

-Role

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

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams