跳到主要内容
跳到主要内容

system.users

包含在服务器上配置的 用户账户 列表。

列:

  • name (String) — 用户名。

  • id (UUID) — 用户 ID。

  • storage (String) — 用户存储的路径。在 access_control_path 参数中配置。

  • auth_type (Enum8('no_password' = 0, 'plaintext_password' = 1, 'sha256_password' = 2, 'double_sha1_password' = 3, 'ldap' = 4, 'kerberos' = 5, 'ssl_certificate' = 6, 'bcrypt_password' = 7)) — 显示认证类型。用户识别有多种方式:无密码、明文密码、SHA256 编码的密码、double SHA-1 编码的密码或 bcrypt 编码的密码。

  • auth_params (String) — 根据 auth_type 的 JSON 格式的认证参数。

  • host_ip (Array(String)) — 允许连接到 ClickHouse 服务器的主机 IP 地址。

  • host_names (Array(String)) — 允许连接到 ClickHouse 服务器的主机名称。

  • host_names_regexp (Array(String)) — 允许连接到 ClickHouse 服务器的主机名称的正则表达式。

  • host_names_like (Array(String)) — 允许连接到 ClickHouse 服务器的主机名称,使用 LIKE 谓词设置。

  • default_roles_all (UInt8) — 显示为用户默认授予的所有角色。

  • default_roles_list (Array(String)) — 默认提供的授予角色列表。

  • default_roles_except (Array(String)) — 除了列出的角色之外,所有默认授予的角色。

另见