Is there any option in ShaerPoint Designer 2013 workflow to access Active Directory "Manager" field?

So that we can get the manager of a user specified in particular field.

  • 1
    user profiles is your friend. If you have manager mapped from AD to your SharePoint online then there is no need to try going to Ad for the info...
    – Cherubel
    Oct 1 '15 at 12:04
  • Can you post an example?
    – soccer7
    Oct 21 '15 at 17:53

You're using SharePoint 2013 - got it.

If your workflow is a SharePoint 2010 workflow you can simply use the Lookup Manager for User activity.

If your workflow is a SharePoint 2013 workflow you will need to use the Call HTTP Web Service activity, with the following end point URL:

http://your-sharepoint-site/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=[%Workflow Context:Initiator%]

You can find full details here.

  • "Lookup Manager for User" activity? How random is that!
    – Nacht
    Apr 19 '17 at 4:41

I have posted a detailed instructions for getting the current user and the user's manager in SharePoint Online. I have also added a link for the JS and custom form for download. Get Current Logged in User & Manager using REST API in SharePoint Online


 var url=_spPageContextInfo.webAbsoluteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties"
  • Please include the relavent code pieces from your article that answer this question. Oct 13 '16 at 13:47
  • Thanks for pointing about the forum rules. I have updated it.
    – Maruthu
    Oct 17 '16 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.