Updated at September 7, 2026 01:25 PM
box.schema.role.create()
Create a role. For explanation of how Tarantool maintains role data, see section Roles.
Parameters:
role-name(string) — name of role, which should conform to the rules for object namesoptions(table) —if_not_exists=true|false(default =false) — boolean;truemeans there should be no error if the role already exists
Returns
nil
Example:
box.schema.role.create('books_space_manager')box.schema.role.create('writers_space_reader')
See also: access_control_roles.