8459ax02.fm Draft Document for Review December 11, 2019 1:55 pm Example B-6 List all currently defined OCP users Example B-9 Login to OpenShift 5. Use the  oc policy  command to assign the  user2  user cluster admin rights as shown in  Example B-7. 6. Logout using the  oc logout  command as shown in Example B-8.  7. Login back to OpenShift CLI as user  user2  as shown in Example B-9. 8. List again all currently defined OCP users using the  oc get  command. Now you see the  user2  in the list as shown in Example B-10 on page 213. $ oc get user NAME UID FULL NAME IDENTITIES user618 18e66d09-fc00-11e9-a4e5-fa163e187e44 htpasswd_auth:user618 Example B-7 Assign user cluster admin rights $ oc adm policy add-cluster-role-to-user cluster-admin user2 Warning: User 'user2' not found cluster role "cluster-admin" added: "user2" Example B-8 Logout from OpenShift $ oc logout Logged "user618" out on "https://localhost:8443" $ oc login -u user2 Authentication required for https://localhost:8443 (openshift) Username: user2 Password: ********* Login successful. You have access to the following projects and can switch between them with 'oc  project <projectname>': * default kube-public kube-service-catalog kube-system management-infra openshift openshift-ansible-service-broker openshift-console openshift-infra openshift-logging openshift-monitoring openshift-node openshift-sdn openshift-template-service-broker openshift-web-console Using project "default". 212  Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1