1

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.

2
  • 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, 2015 at 12:04
  • Can you post an example?
    – soccer7
    Oct 21, 2015 at 17:53

2 Answers 2

3

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.

1
  • "Lookup Manager for User" activity? How random is that!
    – Nacht
    Apr 19, 2017 at 4:41
0

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

REST API Call:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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