[BUG] Set-PnPUserProfileProperty only allows already used values when setting SPS-Location #3693
Closed
2 of 6 tasks
Labels
bug
Something isn't working
Reporting an Issue or Missing Feature
When using
Set-PnPUserProfileProperty
, I can only add locations that are already some other user's location as users' locations (SPS-Location
). Setting someone's location to something that has never been used before fails.Expected behavior
I would expect
Set-PnPUserProfileProperty
to be able to introduce new locations as well. This is shown as first example of this very command, so I would expect it to work: https://pnp.github.io/powershell/cmdlets/Set-PnPUserProfileProperty.html#example-1Actual behavior
The error says something like "Current user's permissions are insufficient to complete this request".
Here in this example I have user-2@mytenant.com Office Location (SPS-Location) set to Helsinki manually. I can then choose this same location as user-1's location (as shown above), but I cannot change user-1's location to something that has never been set to anyone's location.
Steps to reproduce behavior
Above
What is the version of the Cmdlet module you are running?
2.3.0
Which operating system/environment are you running PnP PowerShell on?
Linux and Windows tested.
The text was updated successfully, but these errors were encountered: