system.role_grants
Description
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 therole_namerole. To grant one role to another one useGRANT role1 TO role2.granted_role_id(UUID) — The ID of the role.granted_role_is_default(UInt8) — Flag that shows whethergranted_roleis a default role. Possible values: • 1 —granted_roleis a default role, • 0 —granted_roleis not a default role.with_admin_option(UInt8) — Flag that shows whethergranted_roleis a role withADMIN OPTIONprivilege. Possible values: • 1 — The role hasADMIN OPTIONprivilege.• 0 — The role withoutADMIN OPTIONprivilege.