// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-getting-started/cloud-experts-getting-started-admin-rights.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-getting-started-admin-rights-cli_{context}"]
= Using the ROSA CLI

[role="_abstract"]
As the cluster creator, you can use the {rosa-cli-first} tool to create your grant admin credentials to a user.

.Procedure
. Assuming you are the user who created the cluster, run one of the following commands to grant admin privileges:
+
* For `cluster-admin`:
+
[source,terminal]
----
$ rosa grant user cluster-admin --user <idp_user_name> --cluster=<cluster-name>
----
+
* For `dedicated-admin`:
+
[source,terminal]
----
$ rosa grant user dedicated-admin --user <idp_user_name> --cluster=<cluster-name>
----

. Verify that the admin privileges were added by running the following command:
+
[source,terminal]
----
$ rosa list users --cluster=<cluster-name>
----
+
**Example output**
+
[source,terminal]
----
$ rosa list users --cluster=my-rosa-cluster
ID                 GROUPS
<idp_user_name>    cluster-admins
----

. If you are currently logged into the {hybrid-console}, log out of the console and log back in to the cluster to see a new perspective with the "Administrator Panel". You might need an incognito or private window.
+
image:cloud-experts-getting-started-admin-rights-admin-panel.png[]

. You can also test that admin privileges were added to your account by running the following command. Only a `cluster-admin` users can run this command without errors.
+
[source,terminal]
----
$ oc get all -n openshift-apiserver
----