Back to Clickhouse

system.enabled_roles

docs/en/operations/system-tables/enabled_roles.md

26.4.1.1-new682 B
Original Source

Contains all active roles at the moment, including the current role of the current user and granted roles for the current role.

Columns:

  • role_name (String)) — Role name.
  • with_admin_option (UInt8) — Flag that shows whether enabled_role is a role with ADMIN OPTION privilege.
  • is_current (UInt8) — Flag that shows whether enabled_role is a current role of a current user.
  • is_default (UInt8) — Flag that shows whether enabled_role is a default role.