Get-Team

Note: This cmdlet is currently in Beta.

Gets all the teams that the user belongs to.

Syntax

Get-Team
   [-User <String>]

Description

Gets all the teams the user is part of. The user must be you - you can only get information on yourself.

Examples

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

PS> Get-Team -User dmx1@example.com

Optional Parameters

-User

User's UPN (user principal name - e.g. johndoe@example.com)

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

Inputs

UPN, UserID

Outputs

Team