box.schema.user.enable() | Tarantool
Документация на русском языке
поддерживается сообществом

box.schema.user.enable()

box.schema.user.enable(username)

Grants usage and session permissions to the subject user. Equivalent to the following call:

box.schema.user.grant(username, 'usage,session', 'universe', nil, {if_not_exists = true})

Примечание

  • session - allows the binary protocol layer (iproto) to authenticate the user
  • usage - lets user use their privileges on database objects (such as read, write and alter space)

For more information about granting permissions see section box.schema.user.grant.

Параметры:
  • username (string) – the name of the subject user
Return:

(if success) nothing

Possible errors:

  • NO_SUCH_USER - in case the subject user is not found.
Нашли ответ на свой вопрос?
Обратная связь