Getting Manager Name from SP.UserProfiles.PeopleManager REST API using Sharepoint Designer Workflow 2013

I want to get the Manager Name using Sharepoint UserProfile REST API in Sharepoint designer Workflow 2013 by using "Call Http Webservice" action with url http://<site_URL>/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='domain\username' and i am able to get the result in JSON format

{"d":{"GetUserProfilePropertyFor":"domain\username"}}.

But I am not able to read the output thro' Dictionary.

Pls let me know how to implement in Sharepoint designer workflow for reading Sharepoint UserProfile REST API JSON output.

Thanks

Rajkumar V


  • Edited by Rajkumar VN Thursday, November 28, 2013 3:04 PM
November 28th, 2013 2:49pm

Hi,

once I print the json output to history log it gives an access denied error. 

"Responce {"error":{"code":"-2147024891, System.UnauthorizedAccessException....."

I have tried below options as well,

  1. Adding "Authorization" Header with Empty value.
  2. Registering workflow with "Appenv.aspx" and giving it App Permission
  3. Using a app step in a workflow. 

But still im getting the same error. 

please advice. 

Free Windows Admin Tool Kit Click here and download it now
March 26th, 2015 12:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics