Get-PnPTeamsChannel

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Get-PnPTeamsChannel.md to change this file.

Required Permissions

  • Microsoft Graph API : One of Group.Read.All, Group.ReadWrite.All

Gets the channels for a specified Team.

Syntax

Get-PnPTeamsChannel
   -Team <TeamsTeamPipeBind>
   [-Identity <TeamsChannelPipeBind>] 
   [<CommonParameters>]

Examples

EXAMPLE 1

Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8

Retrieves all channels for the specified team

EXAMPLE 2

Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity "Test Channel"

Retrieves the channel called 'Test Channel'

EXAMPLE 3

Get-PnPTeamsChannel -Team a6c1e0d7-f579-4993-81ab-4b666f8edea8 -Identity "19:796d063b63e34497aeaf092c8fb9b44e@thread.skype"

Retrieves the channel specified by its channel id

Parameters

-Identity

The id or name of the channel to retrieve.

Type:TeamsChannelPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Team

Specify the group id, mailNickname or display name of the team to use.

Type:TeamsTeamPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False