Import_user_csv_to_groups

Description - Add user with a .csv in groups

Connect to your m365 tenant

!!!!!!!!!!!!!!!!!!!!!!!!get the link to the connexion page !!!!!!!!!!!!!!!!!!!!!

Create a csv file

example :

email
s.ab@xxx.fr
g.a@xxx.fr
a.a@xxx.fr

create a script PS1 for import the csv file :

import_test.ps1

#launch in powershell

Import-CSV "C:\example.csv" | ForEach-Object {
#Write-Host ($_.email)
Add-UnifiedGroupLinks –Identity "YOURGROUPSOFFICE365" –LinkType Members –Links $_.email
}

Source : morgantech

Date : 2018.11.23