I am trying to fetch the manager full name when a user name is populated in the people picker control. Here are the steps I am following:

  1. Added another control on page.
  2. The AfterCallbackClientScript property of this control will fire a javascript method.
  3. I am then getting the value of people picker control that will fetch me the Preferred Name of user.
  4. This preferred name is to be used by GetUserProfileByName method to fetch user profile. But the method accepts login name and not preferred name.

Is there a way to fetch user profile from preferred name? I also want the location of user which I cannot get. Any help would be appreciated.

  • You should be able to get the managers login name and pass it back to GetUserProfileByName and get the PreferredName. Commented Sep 7, 2012 at 23:24
  • I get the preferred name from people picker form control. I want the user profile details from it. Is there a way to get user id from people picker?
    – Ashish
    Commented Sep 8, 2012 at 4:38

1 Answer 1


Take a look at the new SPFindPeoplePicker function in SPServices v0.7.2. It returns more information about the user(s), including the dictionary entry, which includes the account.

  • Thanks Marc. I've used the same function from your blog post. I guess its now a part of SPServices API library.
    – Ashish
    Commented Oct 4, 2012 at 4:26

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.