Hi everyone:
Looking for some assistance with the following:
I have set up a new Sharepoint Team Site in my tenant. I have a csv of 150 external users’ email addresses that will be needing access to this site. I’m using Sharepoint PNP and running this command…
(Import-Csv C:\users\nelso\Documents\gpmusers.csv).email | ForEach {Add-PnPUserToGroup -LoginName $_ -Identity 6}
Gives me the following error…
Add-PnPUserToGroup : The specified user externaluser@externaldomain.com could not be found.
At line:1 char:69
- … s.csv).email | ForEach {Add-PnPUserToGroup -LoginName $_ -Identity 6}
-
- CategoryInfo : WriteError: ( [Add-PnPUserToGroup], ServerException
- FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Principals.AddUserToGroup
I realized that I haven’t added these users anywhere into Office 365 in order for Sharepoint to find them. Would anyone know a way to achieve this? I came across this article…
Makes basic sense to me but I’m not an expert so not sure if this would solve my issue of getting these users into my tenant.
Thanks in advance for any help.
Nelson