How to add bulk users to MS Teams from CSV file using PowerShell

preview_player
Показать описание
Hi everyone,
In this video, I will show how to add users to MS Teams using PowerShell and a CSV file.
You can always add users to a TEAM from the TEAMS admin page or
You can use a CSV file. It is totally up to you. It depends on which way makes more sense to you.

How to get a List of TEAMS:
Get-Team

How to get the Group ID of a TEAM:
Get-Team | Where {$_.DisplayName -eq "Learning Portal"} | Select -ExpandProperty GroupID

How to import the CSV file:
Import-Csv -Path "YOUR_FILE_PATH" | foreach{Add-TeamUser -GroupId YOUR_TEAM_ID -user $_.email}

Connect to MS Teams Admin Center using PowerShell

#powershell #microsoftteams #office365 #microsoft #howto
Рекомендации по теме
Комментарии
Автор

Thank you so much! I had a ticket to add over 300 users! You saved me so much time.

liamh
Автор

Thank You!! Waiting for more vedios..😊

sanofamotivation
Автор

Sir, are you using this instruction to import buk? NOW 2024

natsagdorjtsedensambuu
Автор

Thank you for this. After several unsuccessful attempts at performing your import, I finally managed to achieve "Completed" with no error messages. However, when I went to access the Team, no members had been added. Are there any further checks and balances you can point me to to resolve that? I do note that I tried to upload some of my test students as "Guests" but PowerShell didn't like that. When I adjusted them to members, powerShell ran. Also, I had to match the column name header to your PowerShell code for it to work.
P.S. A strange thing has happened. If I search the MS Teams admin centre, select Manage Teams and click on the Team, all members in the import are present. When I come out of the admin centre and locate Teams from the waffle, then access the Team, only the administrator (me) is enrolled and there are zero members and guests. Any ideas why that would be?

twitno
Автор

I need a command to add multiple users into multiple teams groups using csv file.. ex: I have 40 users that I need to add to 50 teams groups/sites

alishiamcmillian
visit shbcf.ru