1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/gitops-dex-role-mappings.adoc
2023-10-30 10:13:25 -04:00

30 lines
760 B
Plaintext

// Module is included in the following assemblies:
//
// * configuring-sso-for-argo-cd-on-openshift
:_mod-docs-content-type: PROCEDURE
[id="gitops-dex-role-mappings_{context}"]
= Mapping users to specific roles
Argo CD cannot map users to specific roles if they have a direct `ClusterRoleBinding` role. You can manually change the role as `role:admin` on SSO through OpenShift.
.Procedure
. Create a group named `cluster-admins`.
+
[source,terminal]
----
$ oc adm groups new cluster-admins
----
. Add the user to the group.
+
[source,terminal]
----
$ oc adm groups add-users cluster-admins USER
----
. Apply the `cluster-admin` `ClusterRole` to the group:
+
[source,terminal]
----
$ oc adm policy add-cluster-role-to-group cluster-admin cluster-admins
----