Commands › Microsoft Teams

Add-TeamChannelUser

Microsoft Teams MicrosoftTeams Add-*

Adds an owner or member to the private channel.

Quick start script

# Add-TeamChannelUser — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Add-TeamChannelUser -DisplayName <String> -GroupId <String> -User <String> | Format-List

# 3. Export for evidence / drift tracking
Add-TeamChannelUser | Export-Clixml .\TeamChannelUser-$(Get-Date -Format yyyyMMdd).xml

Syntax

Add-TeamChannelUser -GroupId <String> -DisplayName <String> -User <String> [-Role <String>] [-TenantId <String>] [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-DisplayName String yes Display name of the private channel
-GroupId String yes GroupId of the parent team
-Role String Owner
-TenantId String TenantId of the external user
-User String yes User's UPN (user principal name - e.g. johndoe@example.com)

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.