I'm creating a new user using the Kentico API.
var user = new UserInfo
{
Email = email,
FirstName = fName,
LastName = lName,
Enabled = true,
IsEditor = false,
IsGlobalAdministrator = false,
UserURLReferrer = CMSContext.CurrentUser.URLReferrer,
UserCampaign = CMSContext.Campaign
};
user.LoadDefaultData();
user.UserSettings.LoadDefaultData();
I thought that the last two lines would load the CMS Site Manager defaults for the user. I.e., I have an integer field named 'UserNotificationContentFreq' that has a default value of 2, in the user setttings system table. But even in debug mode, after these calls are made, the field 'UserNotificationContentFreq' is null.
I've also saved the new user to the database, and verified there as well.
Is there a way to do this using the API? I do not want to have set the default values for all of these fields again.
version 6.0.4402