This project has moved. For the latest updates, please go here.

SPGetCurrentUser and Manager Field

Mar 13, 2014 at 3:12 PM
Is there a way to retrieve the manager field using SPGetCurrentUser? Through User Profile Services I have the Manager field mapped properly to my Active Directory and it imports properly but it returns undefined when making the SPServices call. It could be that I'm missing something as I did read that SPGetCurrentUser "scrapes" values from userdisp.aspx but I'm at a loss as to how to add the Manager field. Thoughts?
Mar 13, 2014 at 3:33 PM
As you noted, SPGetCurrentUser "scrapes" the values from userdisp.aspx. Manager is not one of the fields available on that page. Instead, make a call to the UserProfileService, specifically GetUserProfileByName.

Marked as answer by kelcharge on 3/14/2014 at 11:18 AM