mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
15 lines
678 B
Markdown
15 lines
678 B
Markdown
---
|
|
slug: /en/operations/system-tables/current-roles
|
|
---
|
|
# current_roles
|
|
|
|
Contains active roles of a current user. `SET ROLE` changes the contents of this table.
|
|
|
|
Columns:
|
|
|
|
- `role_name` ([String](../../sql-reference/data-types/string.md))) — Role name.
|
|
- `with_admin_option` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Flag that shows whether `current_role` is a role with `ADMIN OPTION` privilege.
|
|
- `is_default` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Flag that shows whether `current_role` is a default role.
|
|
|
|
[Original article](https://clickhouse.com/docs/en/operations/system-tables/current-roles) <!--hide-->
|