Hello,
Your are correct. There is no stored procedure. User record get stored in the following sequence in database with sample INSERT Statement with mandatory fields.
- CMS_User
INSERT INTO CMS_User(UserName,Email,UserGUID,UserLastModified,UserPrivilegeLevel,UserPasswordFormat,UserCreated) Values('vasu','vasu@gmail.com', NewID(),GETDATE(),3,'PBKDF2',GETDATE())
- CMS_CMS_UserSettings [optional]
INSERT INTO CMS_UserSettings (UserSettingsUserID,UserSettingsUserGUID) VALUES(@UserID, @UserGUID)
You can get the @UserID and @UserGUID from CMS_User table
- CMS_UserSite [optional]
INSERT INTO CMS_UserSite(UserID,SiteID) Values(@UserID,SiteID)
- CMS_UserRole[optional]
INSERT INTO CMS_UserRole(UserID,RoleID) VALUES(@UserID,@RoleID)
Create user with UserPrivilegeLevel 3, then no need to insert into remaining tables. User can login into the CMSDesk as administrator and user can set remaining properties.
Note: Kentico does not recommend working directly on Database tables.