How To Add Bulk Users to MS Teams Private Channels

Microsoft Team Channels provide an organized way of communication with other teams. MS Team Channels allow you to import users in bulk with PowerShell which will drastically reduce the time to introuce MS Team in a new organization.

You can use the following script to Import bulk users in a private channel. You need a CSV file with the following information. 

CSV name : Users.csv


Teams Channel Bulk CSV

You need to find Team ID which has a private channel. You can use the following commands to get this information.


Import-Module -Name MicrosoftTeams
Get-Team -DisplayName “Team Name”

MS Team Groupid

Now you can enter the information in the following script.

$TeamsID = “Enter Groupid”

$ChannelName = “Enter Private Channel Name”

# Change path to your csv file
$users = Import-Csv “C:\Temp\Users.csv”

foreach ($user in $users) {

$UPN = $user.upn

Add-TeamChannelUser -GroupId $TeamsID -User $UPN -DisplayName “$ChannelName”


You can download the script files here.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More