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
SanthoshB1
May 09, 2017Bronze Contributor
I am unsure from your question that you are trying to add external users to SharePoint group / Office 365 group.
If it was SharePoint group you can use below PnP. Please note that the external users need to be present in Azure AD before executing this script.
Add-PnPUserToGroup -LoginName user@company.com -Identity 'Marketing Site Members'
If it was Office 365 Groups, AFAIK there is no PowerShell to add external users to the group.