Open
Description
Hello,
I've run everything up to the invoke script. The pronoun field shows up in SharePoint custom properties, I confirmed the app and API permissions were set.
When I run the script I get the below error for every user. Can anyone help?
Get-PnPUserProfileProperty : Attempted to perform an unauthorized operation.
At E:\Invoke-PronounSync.ps1:48 char:20
- ... $pnpUser = Get-PnPUserProfileProperty -Account $aadUser.UserPrincipa ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : WriteError: (:) [Get-PnPUserProfileProperty], ServerUnauthorizedAccessException
- FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.UserProfiles.GetUserProfileProperty
Thanks
Metadata
Metadata
Assignees
Labels
No labels