Is it possible to retrieve the name of a user's manager using SPServices if the userID is entered?

Ie: Either using a people picker field or a text field ("txtUserID) the userID is entered.

Upon clicking the Resolve Name button or pressing enter the Full Name is resolved in txtUserID and the associated Manager's name is populated in "txtManagerName"?


My experience is that the Manager lookup is only available in the context of a workflow.

You'll need to have User Profile Synchronization configured, then you could create a basic workflow on add/edit of the item to retrieve and update the manager field.


You could create a custom control that takes a UserID, passes it to the User Profile Service web service, and return the user's manager. That's not something you'd be able to just do out of the box with a people picker though.


When you say UserID, I think you probably mean the account since you mention a People Picker. Using the new SPFindPeoplePicker function in SPServices v0.7.2, you can get the dictionary entry for the user. That contains the account, which you can then use in a call to the User Profile Service to get the user's manager, if available.

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.