Skip to content

Latest commit

 

History

History
107 lines (78 loc) · 2.06 KB

Add-PnpTeamsChannelUser.md

File metadata and controls

107 lines (78 loc) · 2.06 KB
Module Name schema applicable online version external help file title
PnP.PowerShell
2.0.0
SharePoint Online
PnP.PowerShell.dll-Help.xml
Add-PnPTeamsChannelUser

Add-PnPTeamsChannelUser

SYNOPSIS

Required Permissions

  • Microsoft Graph API: ChannelMember.ReadWrite.All

Adds a user to an existing Microsoft Teams private channel.

SYNTAX

Add-PnPTeamsChannelUser -Team <TeamsTeamPipeBind> -Channel <TeamsChannelPipeBind> -User <String> -Role <String> 

DESCRIPTION

Allows to add a user to a private channel in Microsoft Teams.

EXAMPLES

EXAMPLE 1

Add-PnPTeamsChannelUser -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -Channel "19:[email protected]" -User john@doe.com -Role Owner

Adds user as an owner to the private channel.

EXAMPLE 2

Add-PnPTeamsChannelUser -Team "My Team" -Channel "My Private Channel" -User john@doe.com -Role Member

Adds user as a member to the private channel.

PARAMETERS

-Team

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

Type: TeamsTeamPipeBind
Parameter Sets: (All)

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

-Channel

The id or name of the channel to retrieve.

Type: TeamsChannelPipeBind
Parameter Sets: (All)

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

-User

Specify the UPN (e.g. [email protected])

Type: String
Parameter Sets: (User)

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

-Role

Specify the role of the user

Type: String
Parameter Sets: (All)
Accepted values: Owner, Member

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

RELATED LINKS

Microsoft 365 Patterns and Practices