AnsweredAssumed Answered

How to return manager property via web service office 365

Question asked by eldo on Aug 6, 2014
Latest reply on Dec 28, 2016 by kkgan

Is it possible to return the manager property via the web service action in office 365? The reason I ask is there is a known bug Error message when you connect an InfoPath form to a SharePoint Online web service: "An error occurred while connecting  … . In short the loopback issue seen in previous builds of SharePoint, but you cant turn it off as its in the cloud.

 

I'm presume you would need to pass in the url  http://siteurl/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='LastName')?@v='domain\username' to the url section.

2014-08-07_10-29-20.jpg

 

However you always seem to get an

 

Response Content:
{"odata.error":{"code":"-2147024891,
System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access
denied. You do not have permission to perform this action or access this
resource."}}}

 

even when running the workflow as an admin.

 

Outcomes