You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Account running script has global admin rights. It's possible to update the property for current user executing the script, but access denied when try to update a property for a different account.
Set-PnPUserProfileProperty : Access denied. You do not have permission to perform this action or access this resource.
At \Mac\Home\Desktop\Reset-UserProfiles.ps1:25 char:13
@matsla - To give you an update, this is not an issue with PnP PowerShell but has to do with how SharePoint Online handles authorization. We provided Microsoft with this feedback and are waiting for them to reply on it. We have no ETA when that will happen.
Account running script has global admin rights. It's possible to update the property for current user executing the script, but access denied when try to update a property for a different account.
Set-PnPUserProfileProperty -Account $accountName -PropertyName "SPS-Birthday" -Value "2021-01-01"
Set-PnPUserProfileProperty : Access denied. You do not have permission to perform this action or access this resource.
At \Mac\Home\Desktop\Reset-UserProfiles.ps1:25 char:13
PnP Management Shell application has been granted correct permissions in Azure AD
What is the version of the Cmdlet module you are running?
V1.5.0
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: