Skip to content

Add box.schema.user.enable and box.schema.user.disable methods description to **Submodule box.schema** #5122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AArdeev opened this issue May 21, 2025 · 0 comments · May be fixed by #5123
Assignees
Labels

Comments

@AArdeev
Copy link
Contributor

AArdeev commented May 21, 2025

Product: Tarantool
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_schema/
SME: @ tekl1s

Details

  • Currently, the box.schema.user.enable and box.schema.user.disable methods are merely mentioned in the documentation as notes in articles for box.schema.user.grant and box.schema.user.revoke.
  • Both methods are useful tools for customers in terms of user management:

box.schema.user.enable('{username}') can be used instead of

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

box.schema.user.disable('{username}') can be used instead of

box.schema.user.revoke('{username}','usage,session','universe',nil,
{if_exists=true})
  • Both methods must be documented as separate sub-pages next to other APIs.

Example of use:

box.schema.user.enable (username)
---
box.schema.user.disable (username)
---
@AArdeev AArdeev self-assigned this May 21, 2025
AArdeev added a commit that referenced this issue May 21, 2025
…iption to Submodule box.schema

2 new files ("user_enable.rst" and user_disable.rst") added to the box.schema submodule.
Files describe methods that activate and deactivate users.
References added to existing files ("box_schema.rst", "user_grant.rst", "user_revoke.rst"
Fixes #5122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant