24.1 C
Dubai
Thursday, April 18, 2024

Adding members to unified group via csv

Make sure you Connected to Exchange Online PowerShell

Connect-ExchangeOnline

To check Unified Group Members –

Get-UnifiedGroupLinks groupname -LinkType member

Add Members to Unified Group via CSV –

Import-Csv .\usersupn.csv | ForEach-Object{Add-UnifiedGroupLinks -Identity migrate -LinkType members -Links $_.upn}

CSV Sample – Double quotes is very important otherwise you many see undesirable adds.

You can always use -WhatIf if you want to verify before applying

Import-Csv .\usersupn.csv | ForEach-Object{Add-UnifiedGroupLinks -Identity migrate -LinkType members -Links $_.upn -Whatif}

 

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?