Sync-PnPSharePointUserProfilesFromAzureActiveDirectory not working after update to 2.12.0 #4343
Unanswered
stengaard-jyskebank-dk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to call Sync-PnPSharePointUserProfilesFromAzureActiveDirectory after updating PnP.Powershell to 2.12.0 I get this error:
Sync-PnPSharePointUserProfilesFromAzureActiveDirectory : Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.
Inner error:
AdditionalData:
date: 2024-09-25T17:20:15
request-id: 712cb8a7-187f-4666-bd99-0f16a33fd2bd
client-request-id: 712cb8a7-187f-4666-bd99-0f16a33fd2bd
ClientRequestId: 712cb8a7-187f-4666-bd99-0f16a33fd2bd
At D:\AST\Powershell\UpdateSPUserProfileFieldForUser.ps1:12 char:1
According to this link: https://pnp.github.io/powershell/cmdlets/Sync-PnPSharePointUserProfilesFromAzureActiveDirectory.html these permissions are needed for the command, and I have set those in the Enterprise Application
SharePoint: Sites.FullControl.All, TermStore.ReadWrite.All, User.ReadWrite.All
Microsoft Graph: User.Read
ACS: No longer needed
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions