Get-AssociatedTeam
This cmdlet supports retrieving all teams associated with a user, including teams which host shared channels.
Syntax
Default (Default)
Get-AssociatedTeam
[-User <String>]
[<CommonParameters>]
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).
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: | True |
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.