Get-Team

Note: This cmdlet is currently in Beta.

Gets all the teams that the user belongs to or all teams in an organization

Syntax

Get-Team
   [-User <String>]

Description

Gets all the teams in an organization, or all teams that you belong to. The user must be you - you can only get information on yourself or all teams in the organization. Note: we are still backfilling existing teams to get returned by this command.

Examples

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

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

Optional Parameters

-User

User's UPN (user principal name - e.g. johndoe@example.com). This can only be your own UPN. If not specified, this cmdlet will return all groups that have been Teams-enabled in an organization.

Note: we are still backfilling existing teams to get returned by this command.

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