Forum Discussion
Nigel Price
May 09, 2017Iron Contributor
Can I add External users to a SharePoint group using (PnP) Powershell
Hi Anyone know how to add external users to a group in an Office 365 Tenancy using (PnP) Powershell ? (I have about 2500 external users to add) Regards Nigel
Nigel_Price9911
Nov 29, 2018Iron Contributor
Thanks Nils Külper - that is great !
Nils Külper
Nov 29, 2018Copper Contributor
And don't forget that you need to elevate a member to the status of an owner (and vice versa) like this:
Add-UnifiedGroupLinks -Identity "Teamsite Test" -LinkType Members -Links john@doe.com
Add-UnifiedGroupLinks -Identity "Teamsite Test" -LinkType Owners -Links john@doe.com
Remove-UnifiedGroupLinks -Identity "Teamsite Test" -LinkType Owners -Links john@doe.com -Confirm:$false
Remove-UnifiedGroupLinks -Identity "Teamsite Test" -LinkType Members -Links john@doe.com -Confirm:$false
You add a new member and then you can set this contact as an owner. Works perfectly.