The Viewer role doesn't allow access to connection strings of your Managed ClickHouse® clusters. If you want to provide access to a cluster, create a standalone user with read-only rights for each Managed ClickHouse® cluster on your project:
Create a user and its password:
CREATEUSER IF NOTEXISTS<new_user_name>ON CLUSTER <cluster ID> IDENTIFIED BY'<new_user_password>'
Assign the read-only rights to the newly created user:
Now the user can see the tables and perform SELECT queries with all the databases on the cluster.
The newly created user can connect to the cluster with the following string:
clickhouse-client --host <FQDN of the cluster where you created this user> \
--secure \
--user <new_user_name> \
--password <new_user_password> \
--port 9440
Delete a ClickHouse® user
To delete a user from your ClickHouse® cluster, send the following query: