-
Notifications
You must be signed in to change notification settings - Fork 0
5. Add Members To Channel
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.

In the same directory as the 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

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.