Create(String, String):IUser

Creates a new user in onion.net.

New users can only be created by users with the role of user manager or administrator.

Roles and permissions are assigned after the user has been created. It should be noted that not all roles can be assigned by any user manager.

  • User managers can give normal users the roles of editor, live editor, schema manager and application server.
  • Administrators can assign the same roles as user managers, plus the role of user manager.
  • The user admin can assign the same roles as administrators, plus the role of administrator.

The idea is simple. The intention is to make it impossible for users to be placed on the same permission level as one's own user and thus for the other user to be able to reduce one's own permissions or even eliminate these from the system.

Return type: Onion.Client.IUser

Parameter

userName

Type: System.String

This parameter is the username of the user. The user logs onto the system with this.

password

Type: System.String

This parameter is the password for the new user. If an incorrect password has been set, then the password for this user can be updated with the method UpdatePassword.