Skip to content

A Powershell module that imports users from a CSV into a Microsoft Teams group.

Notifications You must be signed in to change notification settings

luketainton/TeamsUserEnroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TeamsUserEnroller

A Powershell module that imports users from a CSV into a Microsoft Teams group.

Setting up your device

This module uses PowerShell, which is pre-installed on Windows. If you're not on Windows, please download PowerShell Core.

  1. Open PowerShell as an administrator.
  2. Install this module by running Install-Module -Name TeamsUserEnroller.

Running the script

  1. 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
    
  2. 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 you can't run non-signed scripts

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.

Need help?

If you need assistance, please try the following:

  1. See the help documentation by running Get-Help Import-TeamsUsers.
  2. Check closed issues here.
  3. Open an issue here.