How to create a created user date in sitecore. I am creating a script in C # to list all sitecore users and its profile fields, such as Last active date, Last updated date, etc. I have all the users on the list using -
var users = Sitecore.Security.Accounts.UserManager.GetUsers();
foreach (Sitecore.Security.Accounts.User user in users)
{
ltLastActiveDate = user.Profile.LastActivityDate;
ltCreatedDate = user.Profile
}
I have no idea how to create the created date for the user.
source
share