Forum Discussion
Samara
Sep 12, 2017Copper Contributor
Bulk update SPO user profile properties API with App Only permissions
I am trying to implement an job using SharePoint user profile bulk update API and would like to run on schedule basis with 'App Only' permissions. I am able to connect to SharePoint online but get a...
VegardStromsoy
May 02, 2018Brass Contributor
Wondering the same, did you find out?
Samara
Jun 28, 2018Copper Contributor
Yes, I was able to implement using app only permissions. In order to connect to the import api, we would need to grant the app principal admin rights on the social API. You will need to navigate to the sharepoint online admin center and then navigate to the app permission page (_layouts/15/appinv.aspx). Use the below permission xml which grants tenant admin rights and admin rights on social api.
<AppPermissionRequests AllowAppOnlyPolicy="true" >
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
<AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="FullControl" />
</AppPermissionRequests>