Skip to content
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

GRANT ROLE <name> TO USER <user_name> #2818

Closed
Tracked by #2815
BohuTANG opened this issue Nov 16, 2021 · 0 comments
Closed
Tracked by #2815

GRANT ROLE <name> TO USER <user_name> #2818

BohuTANG opened this issue Nov 16, 2021 · 0 comments
Assignees
Labels
A-query Area: databend query

Comments

@BohuTANG
Copy link
Member

BohuTANG commented Nov 16, 2021

Summary

Assigns a role to a user, granting a role to a user enables the user to perform all operations allowed by the role (through the access privileges granted to the role).

GRANT ROLE <name> TO USER <user_name>

This will discard our previous design of user with privileges grant, change to grants with role.

Notes:
A user can only have one role at a time.

@BohuTANG BohuTANG mentioned this issue Nov 16, 2021
6 tasks
@BohuTANG BohuTANG added A-databend-cloud A-query Area: databend query labels Nov 16, 2021
@BohuTANG BohuTANG changed the title GRANT ROLE <name> TO { ROLE <parent_role_name> | USER <user_name> } GRANT ROLE <name> TO USER <user_name> Nov 16, 2021
@junnplus junnplus self-assigned this Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query Area: databend query
Projects
None yet
Development

No branches or pull requests

2 participants