> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Системная таблица, содержащая активные роли текущего пользователя.

# system.current_roles

<div id="description">
  ## Описание
</div>

Содержит активные роли текущего пользователя. Команда `SET ROLE` изменяет содержимое этой таблицы.

<div id="columns">
  ## Столбцы
</div>

* `role_name` ([String](/ru/reference/data-types/index)) — Имя роли.
* `with_admin_option` ([UInt8](/ru/reference/data-types/index)) — 1, если у роли есть привилегия ADMIN OPTION.
* `is_default` ([UInt8](/ru/reference/data-types/index)) — 1, если роль задана по умолчанию.
