create

suspend fun create(username: String, password: String, role: String, id: String? = null): User

Creates a new user.

Return

The created User.

Parameters

username

The user's username.

password

The user's password.

role

The user's role. Possible values are "admin", "user", and "view-only"

id

The user's ID (optional).