When using the cmdlet "Add-PnPListItem -List "Projects" -Values @{"Title" = "$TitleOfSite"; "Projectmember" = "abc@def, abc@xyz"}" I expect to see that the users will be added to the people field "Projectmember". Allow multiple selections setting is on for this field.
Actual behavior
None of the users are added to the field "Projectmember". When testing it with 1 user, the user is added to the field, but if more than 1 user, none of the users are added. I get the following error:
Add-PnPListItem : The specified user abc@def, abc@xyz could not be found.
It seems like it sees the multiple users as 1 user and not as multiple users.
Which version of the PnP-PowerShell Cmdlets are you using?
[ ] PnP PowerShell for SharePoint 2013
[ ] PnP PowerShell for SharePoint 2016
[X] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
2.26.1805.1
How did you install the PnP-PowerShell Cmdlets?
[ ] MSI Installed downloaded from GitHub
[X] Installed through the PowerShell Gallery with Install-Module
Reporting an Issue
Expected behavior
When using the cmdlet "Add-PnPListItem -List "Projects" -Values @{"Title" = "$TitleOfSite"; "Projectmember" = "abc@def, abc@xyz"}" I expect to see that the users will be added to the people field "Projectmember". Allow multiple selections setting is on for this field.
Actual behavior
None of the users are added to the field "Projectmember". When testing it with 1 user, the user is added to the field, but if more than 1 user, none of the users are added. I get the following error:
It seems like it sees the multiple users as 1 user and not as multiple users.
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
2.26.1805.1
How did you install the PnP-PowerShell Cmdlets?