box.schema.user.create()
-
box.schema.user.
create
(user-name[, {options}]) Create a user. For explanation of how Tarantool maintains user data, see section Users and reference on _user space.
The possible options are:
if_not_exists
=true|false
(default =false
) - boolean;true
means there should be no error if the user already exists,password
(default = ‘’) - string; thepassword
= password specification is good because in a URI (Uniform Resource Identifier) it is usually illegal to include a user-name without a password.
Note
The maximum number of users is 32.
Parameters: - user-name (string) – name of user, which should conform to the rules for object names
- options (table) –
if_not_exists
,password
Return: nil
Examples:
box.schema.user.create('Lena') box.schema.user.create('Lena', {password = 'X'}) box.schema.user.create('Lena', {if_not_exists = false})