Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Edit Custom User Properties Programmatically

  Asked By: Srikant    Date: Jun 02    Category: Sharepoint    Views: 1857

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.



3 Answers Found

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

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

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

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

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.