The following example describes how to modify a user profile by changing the first name and last name values.
To modify a profile, you get an instance of the profile. In this example, you get the instance of the profile by the ID of the user. For more information, see For developers: Query user profiles. Then, you change the desired values, and finally, you save the changes through the profile manager.
If you've extended the user profile with additional custom fields, you can also set values for these fields. For more information on adding custom fields, see Overview: Custom fields.
In the following example the user profile has two additional custom fields added:
You can use the DoesFieldExist extension method from the Telerik.Sitefinity.Model namespace to check if the user contains a particular field.
Back To Top
Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.