MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

How to find a Picture column value

  Asked By: Kiara Horn         Date: Oct 08, 2009      Category: MOSS      Views: 230
 

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

Tagged:            

 

1 Answer Found

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

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].