User Profile details

Sep 7, 2011 at 12:21 PM

Hello,

I'm retrieving a list of items from a SP List thanks to GetListItems service or thanks to a RPC call (http://blogs.msdn.com/b/kaevans/archive/2009/05/01/getting-xml-data-from-a-sharepoint-list-the-easy-way.aspx)
One of the columns is person field, means the value I retrieve from the SP Services call is <local site index>#;<user display name> format.

I need to retrieve the User Profiles details of all the person in this list, email and job title for example.

Problem

GetUserProfileByName is requesting the login of user as a parameter: domain\userLogin
the only information I have is
<local site index>#;<user display name>

So How to get User Profile info when you only know his display name and local index ?

Thanks for your support.

Sep 8, 2011 at 12:21 PM

The User Information List should be helpful because it stores the users account name in it. You have to do a double request. I did this by stripping the id from the format you are seeing (ie 13;#Fred Flintstone) and using SPServices to get the account name from the User Information list using this ID. Then you have the account name to use in GetUserProfile calls.

Dan