A role is a collection of permissions
that can be assigned to one or several users in a ClickHouse® cluster.
Roles allow you to manage privileges and access more efficiently.
You can create and manage roles both in the DoubleCloud console and via SQL.
However, some parameters may only be available via SQL.
Select the Access control tab and then the Roles tab.
Click Create role.
Enter a role name.
(Optional) If you want to assign privileges to the role,
enable Privileges and specify grants or revokes.
Privilege reference
Action: Grant permissions with this privilege or revoke them.
Tip
Revokes allow you to withdraw privileges the user already has through a role or directly.
You can also revoke a part of an existing privilege or grant a certain privilege and revoke its part.
Access type: Access type that's granted or revoked.
Databases: Apply the privilege to all databases or one specific database.
Tables: Apply the privilege to all tables or one specific table.
Columns Apply the privilege to all columns or specific columns.
Grant option: Give the permission to execute the GRANT query
and grant privileges of the same or lower scope.
In Settings, configure additional settings for the role.