Skip to content

5. Add Members To Channel

Marita Fitzgerald edited this page Jun 12, 2021 · 4 revisions

About this script

This script will add members to an existing Channel from a csv file. I have been working with groups of 2-3 students, however if your groups are larger you may want to move to a single student and Channel name per row. The csv file just needs to have a field/attribute called ChannelName, and three for the emails of the members to add (Member1Email, Member2Email & Member3Email), I have included a sample csv.
Sample csv

Where to put csv?

In the same directory as the script

What do I need to change in this script?

You will need to add your Teams GroupId (See getting started) You will need to change the name and path of the csv file to match yours Variables

How do I run this script

The easiest way is to open the file in Powershell ISE (See getting started). Once you have set your own group and file variables just press the green arrow you can see in the image above.

Clone this wiki locally