Sitecore only captures the very basic profile properties while creating a user, this can be customized and extended to add custom profile properties.
When the New button on the ribbon is clicked, it triggers the “usermanager:newuser” command
The command loads the “CreateNewUser” form.
The CreateNewUser form can be found here – sitecore\shell\Applications\Security\CreateNewUser\CreateNewUser.aspx
Edit the markup to add your custom field(s) as shown below:
Update the path of the code behind file
NOTE: The “Inherits” attribute takes the path till the class name.
Implement all the events in your custom code behind class file.
Tip: Decompile the Sitecore.Client.dll and copy the code in the CreateNewUser class present in Sitecore.Shell.Applications.Security.CreateNewUser namespace and add your changes
Update the CreateUserWizard_CreatedUser method to retrieve the value of the custom field and store the custom field in the user profile.
Blogged By : Saim Alam
Get in touch with me if you have any questions.