Tarantool CE/EE Documentation portal logo
Support
Updated at September 7, 2026   01:25 PM

box.schema.role.create()

box.schema.role.create(role-name [, {options}])

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 names
  • options (table) — if_not_exists = true|false (default = false) — boolean; true means 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.