Mar 24 2020
03:04 AM
- last edited on
Feb 01 2023
11:50 AM
by
TechCommunityAP
Mar 24 2020
03:04 AM
- last edited on
Feb 01 2023
11:50 AM
by
TechCommunityAP
Hi all,
Is there a possible way to make a office365 security group or a Microsoft Teams group from a CSV file?
Kind Regards,
Zenna
Mar 24 2020 10:04 AM
Yes, that's one of the main reasons we use PowerShell for. There are plenty examples available online and here on the forums, look them up.
Mar 25 2020 07:52 PM
Hi @zenna
import-csv -Path "C:\Users\user\Desktop\book1.csv" | ForEach-Object { Add-UnifiedGroupLinks -Identity "<nameofO365group>" -LinkType "members" -Links $_.users }
*replace -Path with the path of the CSV file you created and <nameofO365group> with the name of the Group (remove the angle brackets).
This should work