ClickHouse/docs/en/operations/system-tables/role-grants.md
Anna a6fb067a75
DOCSUP-1915: Split system-table.md into separate files. (#13160)
* Corrected en files

* Split system-tables.md into separate files

* Fixed links.

* Fixed links.

* Fixed links.

* Fixed links.

* Add ref to original article

* Fixed links

* Add toc_folder_title and translate

* Add stack_trace.md, correct toc-title

* Fixed links

* Hypothesis testing

* Hypothesis testing

* Update run.sh, thanks @azat

Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru>
Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-08-06 11:50:29 +03:00

1.3 KiB

#system.role_grants {#system_tables-role_grants}

Contains the role grants for users and roles. To add entries to this table, use GRANT role TO user.

Columns:

  • user_name (Nullable(String)) — User name.
  • role_name (Nullable(String)) — Role name.
  • granted_role_name (String) — Name of role granted to the role_name role. To grant one role to another one use GRANT role1 TO role2.
  • granted_role_is_default (UInt8) — 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.
  • with_admin_option (UInt8) — Flag that shows whether granted_role is a role with ADMIN OPTION privilege. Possible values:
    • 1 — The role has ADMIN OPTION privilege.
    • 0 — The role without ADMIN OPTION privilege.

Original article