Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

How to find a Picture column value

  Asked By: Kiara    Date: Oct 08    Category: MOSS    Views: 848

How to find a Picture column value from UserInfo Table in a content DB in MOSS.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Mark Davis     Answered On: Oct 08

Not from User Info table  but from the user profile:
Following sample in a console app should help:

ServerContext oContext = ServerContext.Default;
UserProfileManager upManager = new UserProfileManager(oContext);

foreach (UserProfile cUser in upManager)
{
Console.WriteLine(cUser["PictureUrl"].Value);
}
Console.ReadLine();


Now the above is for MOSS where we have global profiles but if you are looking at WSS then the profiles are site collection scoped and stored in user information list that is hidden and you can loop thru it programmatically as explained in this blog:
vspug.com/.../

 
Didn't find what you were looking for? Find more on How to find a Picture column value Or get search suggestion and latest updates.




Tagged: