Forum Discussion
Add-PnpListItem and Set-PnpListItem Multiple User Field - Adding more than one SharePoint Group
Bhayaty It appears there may be a bug in the Set-ListItem code. I've tested a couple scenarios. With two items in the array, it only sets 1 value. When you specify 3 items in an array, it only sets the 1st and the 3rd items, skipping the second.
You may want to submit an issue in the GitHub Issues list.
https://github.com/pnp/PnP-PowerShell/issues
Beau Cameron Thanks for confirming, it was driving me a little crazy as I thought I was doing something wrong, but just good to get some confirmation that there is an issue in the underlying code.
Will post an issue as suggested, I think it may be in one of the underlying repos, rather than the PnP stuff itself, as I have the issue even when using Add-PnPListItem, which I suspect both call the same methods to set the values.