Creating a user
This will show you how to create a new user using the UserService in Umbraco.
Assigning the user to a user group
// Get a reference to the default "Administrators" user group
UserGroup adminUserGroup = (UserGroup) us.GetUserGroupByAlias("admin");
// Add the user to the user group
user.AddGroup(adminUserGroup);Last updated
Was this helpful?