Skip to content

Issue running invoke-pronounsync.psq #6

Open
@MschnyderISDSI

Description

@MschnyderISDSI

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions