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:
- Added another control on page.
- I am then getting the value of people picker control that will fetch me the Preferred Name of user.
- 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.