Skip to content

Question : which api permission are required on azure AD enterprise app for Get and Set-PnPUserProfileProperty ? #2597

Answered by jeffangama
jeffangama asked this question in Q&A
Discussion options

You must be logged in to vote

Resolved :
User.ReadWrite.AllUser - Application
Sites.Selected - Application

And run this script
$AdminSiteURL = https://yourtenant-admin.sharepoint.com/
$appClientId = "xxx"

Connect-PnPOnline -Url $AdminSiteURL -Interactive
Grant-PnPAzureADAppSitePermission -Permissions "Write" -Site $AdminSiteURL -AppId $appClientId -DisplayName "Permission_Sync_users_mobile"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeffangama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant