Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Edit Custom User Properties Programmatically

  Asked By: Srikant Hebbar         Date: Jun 02, 2006      Category: Sharepoint      Views: 305

For one of the sites we are setting up, we have created custom
properties for the user accounts (e.g., Job Title, Home Phone, etc.).
How does one go about accessing these properties programmatically?
I've tried using the SPUser class but that only seems to give me
access to some basic fields like the email address.

Tagged:          

 

3 Answers Found

 
Answer #1       Answered By: Megan Martin          Answered On: Jun 02, 2006       

You can get this information using DirectoryServices or the profile database.

 
Answer #2       Answered By: Donta Kirkland          Answered On: Jun 02, 2006       

Have you tried the Profiles Web Service? Makes it very simple to
programatically grab user  info.

 
Answer #3       Answered By: Cade Velazquez          Answered On: Jun 02, 2006       

yep, forgot about that. Microsoft.SharePoint.Portal.UserProfiles namespace and UserProfileManager class  should work.

 
Didn't find what you were looking for? Find more on Edit Custom User Properties Programmatically Or get search suggestion and latest updates.


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