Get-AssociatedTeam
This cmdlet supports retrieving all teams associated with a user, including teams which host shared channels.
Syntax
Get-AssociatedTeam
[-User <String>]
Description
This cmdlet supports retrieving all associated teams of a user, including teams which host shared channels.
Examples
Example 1
Get-AssociatedTeam
Returns associated teams of the current user.
Example 2
Get-AssociatedTeam -user example@example.com
Returns associated teams of a given user email.
Example 3
Get-AssociatedTeam -user 0e4249a7-6cfd-8c93-a510-91cda44c8c73
Returns associated teams of a given user ID.
Parameters
-User
User's UPN (user principal name, for example johndoe@example.com) or user ID (for example 0e4249a7-6cfd-8c93-a510-91cda44c8c73).
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
User
Outputs
Team