ClickHouse/docs/en/operations/system-tables/role-grants.md

22 lines
1.3 KiB
Markdown
Raw Normal View History

2022-04-03 23:05:35 +00:00
#system.role_grants {#system_tables-role_grants}
DOCS-663: RBAC roles system tables (#12605) * DOCSUP-1394 (#139) * Added descriptions: system.roles, system.role_grants, system.current_roles, system.enabled_roles * Add columns * Add description for system.roles, system.role_grants, system.current_roles, system.enabled_roles * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Translate system.roles, system.role_grants, etc... * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: BayoNet <da-daos@yandex.ru> * CLICKHOUSEDOCS-663: Fixed links. * CLICKHOUSEDOCS-663: Fixed markup. Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-07-21 12:59:28 +00:00
Contains the role grants for users and roles. To add entries to this table, use `GRANT role TO user`.
Columns:
- `user_name` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — User name.
DOCS-663: RBAC roles system tables (#12605) * DOCSUP-1394 (#139) * Added descriptions: system.roles, system.role_grants, system.current_roles, system.enabled_roles * Add columns * Add description for system.roles, system.role_grants, system.current_roles, system.enabled_roles * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Translate system.roles, system.role_grants, etc... * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: BayoNet <da-daos@yandex.ru> * CLICKHOUSEDOCS-663: Fixed links. * CLICKHOUSEDOCS-663: Fixed markup. Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-07-21 12:59:28 +00:00
- `role_name` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Role name.
DOCS-663: RBAC roles system tables (#12605) * DOCSUP-1394 (#139) * Added descriptions: system.roles, system.role_grants, system.current_roles, system.enabled_roles * Add columns * Add description for system.roles, system.role_grants, system.current_roles, system.enabled_roles * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Translate system.roles, system.role_grants, etc... * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: BayoNet <da-daos@yandex.ru> * CLICKHOUSEDOCS-663: Fixed links. * CLICKHOUSEDOCS-663: Fixed markup. Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-07-21 12:59:28 +00:00
- `granted_role_name` ([String](../../sql-reference/data-types/string.md)) — Name of role granted to the `role_name` role. To grant one role to another one use `GRANT role1 TO role2`.
DOCS-663: RBAC roles system tables (#12605) * DOCSUP-1394 (#139) * Added descriptions: system.roles, system.role_grants, system.current_roles, system.enabled_roles * Add columns * Add description for system.roles, system.role_grants, system.current_roles, system.enabled_roles * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Translate system.roles, system.role_grants, etc... * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: BayoNet <da-daos@yandex.ru> * CLICKHOUSEDOCS-663: Fixed links. * CLICKHOUSEDOCS-663: Fixed markup. Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-07-21 12:59:28 +00:00
- `granted_role_is_default` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Flag that shows whether `granted_role` is a default role. Possible values:
- 1 — `granted_role` is a default role.
- 0 — `granted_role` is not a default role.
2021-07-29 15:27:50 +00:00
DOCS-663: RBAC roles system tables (#12605) * DOCSUP-1394 (#139) * Added descriptions: system.roles, system.role_grants, system.current_roles, system.enabled_roles * Add columns * Add description for system.roles, system.role_grants, system.current_roles, system.enabled_roles * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Translate system.roles, system.role_grants, etc... * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: BayoNet <da-daos@yandex.ru> * CLICKHOUSEDOCS-663: Fixed links. * CLICKHOUSEDOCS-663: Fixed markup. Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-07-21 12:59:28 +00:00
- `with_admin_option` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Flag that shows whether `granted_role` is a role with [ADMIN OPTION](../../sql-reference/statements/grant.md#admin-option-privilege) privilege. Possible values:
- 1 — The role has `ADMIN OPTION` privilege.
2021-07-29 15:20:55 +00:00
- 0 — The role without `ADMIN OPTION` privilege.
DOCS-663: RBAC roles system tables (#12605) * DOCSUP-1394 (#139) * Added descriptions: system.roles, system.role_grants, system.current_roles, system.enabled_roles * Add columns * Add description for system.roles, system.role_grants, system.current_roles, system.enabled_roles * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update system-tables.md * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Translate system.roles, system.role_grants, etc... * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/en/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> * Update docs/ru/operations/system-tables.md Co-authored-by: BayoNet <da-daos@yandex.ru> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: BayoNet <da-daos@yandex.ru> * CLICKHOUSEDOCS-663: Fixed links. * CLICKHOUSEDOCS-663: Fixed markup. Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com> Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru> Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-07-21 12:59:28 +00:00
[Original article](https://clickhouse.com/docs/en/operations/system-tables/role-grants) <!--hide-->