Forum Discussion
Jack Huang
Nov 07, 2018Copper Contributor
Can't update other's sharepoint user profile by REST API even though I am already an administrator
I am trying to update other's user profile in our site, but I am not able to do it with "POST" REST call. Getting permission denied error. Even though I am already administrator of the site. Here...
Aravind Ganesan
Jun 28, 2019Copper Contributor
I too come across the same issue. In my case I tried with MS Flow as in below screenshot
So, instead of using below URI,
https://<companyName>.sharepoint.com/_api/SP.UserProfiles.PeopleManager/SetSingleValueProfileProperty
I used the below URI and able to update the Property successfully. And the account I used is Global Admin.
https://<companyName>-admin.sharepoint.com/_api/SP.UserProfiles.PeopleManager/SetSingleValueProfileProperty
Also, able to perform this action for UserProperties that are not set to 'Allow users to edit values for this property'
Hope this is helpful!
Carlos Andrés Oviedo Gibbons
Jan 18, 2020Copper Contributor
Aravind Ganesan Thank you!, It's work for me!