box.schema.user.enable()
-
box.schema.user.
enable
(username)¶ Grants
usage
andsession
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 userusage
- 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.