This project has moved and is read-only. For the latest updates, please go here.

GetUserprofileByName function limited fileds returned

Nov 24, 2012 at 3:37 PM


i am using getuserprofilebyName function but it is return just few fileds to me , i want to get more properties for the current user, for example i have in AD user profile field named Employee Id , i want to  catch this property to bind it in text box how i can customize the function to return this field to me


Thanks in advance


Nov 24, 2012 at 5:56 PM

The SharePoint User Profile will only contain those properties from AD which are mapped for import in Central Administration. If there are values which you want from AD and they aren't coming over, you'll need to adjust that mapping.


Nov 25, 2012 at 10:28 AM

it is working many thanks

FYI : i use this configuration link 

Nov 25, 2012 at 11:03 AM
Edited Nov 25, 2012 at 11:04 AM


Just small question please,now i must add new property to SPService JS file or it it will readed by default?



Nov 25, 2012 at 3:27 PM

You should get the full User Profile when you call GetUserProfilebyName. Note that there will be some timing delays between synchronizations, etc.