-
Notifications
You must be signed in to change notification settings - Fork 393
Closed
Labels
bugSomething isn't workingSomething isn't workingreproducedIssue reproduced after testingIssue reproduced after testingsupport looking into itMicrosoft Support is looking into the server side of this issueMicrosoft Support is looking into the server side of this issue
Description
Please see also related discussion Can Get nut can't Set with pnp.powershell
Expected behavior
Cmdlet Set-PnPUserProfileProperty allows to update of user-profile properties
Actual behavior
Error is raised:
Set-PnPUserProfileProperty : Access denied. You do not have permission to perform this action or access this resource.
At line:1 char:1
+ Set-PnPUserProfileProperty -Account '[email protected] ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Set-PnPUserProfileProperty], ServerUnauthorizedAccessException
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.UserProfiles.SetUserProfileProperty
Steps to reproduce behavior
- Connect SharePoint Online
- Run following code:
Set-PnPUserProfileProperty -Account '[email protected]' -PropertyName 'WorkPhone' -Value '0123456789'
What is the version of the Cmdlet module you are running?
Manifest 1.3.0 PnP.PowerShell {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPContentType...}
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreproducedIssue reproduced after testingIssue reproduced after testingsupport looking into itMicrosoft Support is looking into the server side of this issueMicrosoft Support is looking into the server side of this issue