A Powershell module that imports users from a CSV into a Microsoft Teams group.
This module uses PowerShell, which is pre-installed on Windows. If you're not on Windows, please download PowerShell Core.
- Open PowerShell as an administrator.
- Install this module by running
Install-Module -Name TeamsUserEnroller
.
- Create a CSV file containing your users and their desired roles. The first line must be the headers
email,role
, for example:email,role [email protected],owner [email protected],member
- Run
Import-TeamsUsers -File <FILE>
, where<FILE>
is the path to the CSV file. You can add the-Create
flag if you want to create a new team first.
If your policy requires scripts to be digitally signed, run
Set-ExecutionPolicy Bypass -Scope Process
then try running the command again. You may require administrative rights to change the Execution Policy.
If you need assistance, please try the following: