Updating a user
Written by
Updated at July 24, 2026
If you have a ClickHouse® user, you can update the set of roles assigned to them.
Once created, you cannot edit the user name (spec.name) and cluster name (spec.cluster). To change the password, update the stringData.password value in the Kubernetes Secret referenced by the ClickhouseUser resource.
Using the CLI
- Get the list of users in the project:
kubectl get clickhouseuser -n <project_name>. - Open the resource for editing:
kubectl edit clickhouseuser <resource_name> -n <project_name>. - Change the composition of roles in the
spec.rolesfield and save the file.
Using the management console
- If you have not opened a project yet, select one.
- In the left-hand menu, select ClickHouse® clusters.
- Select a cluster.
- Go to the Users tab.
- Click the user name to open the card. The General tab displays assigned roles and status. To view the resource manifest, go to the YAML tab.
- Click Edit.
- Change the composition of roles in the Roles field.
- Click Save.