8459ax01.fm Draft Document for Review December 11, 2019 1:55 pm Example A-6 List all currently defined OCP users $ oc get user NAME UID FULL NAME IDENTITIES user615 3e8d8153-f5f8-11e9-b535-fa163e4226a4 htpasswd_auth:user615 $ oc adm policy add-cluster-role-to-user cluster-admin user1 Warning: User 'user1' not found cluster role "cluster-admin" added: "user1" $ oc logout Logged "user615" out on "https://localhost:8443" $ oc login -u user1 Authentication required for https://localhost:8443 (openshift) Username: user1 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". Example A-7 Assign user cluster admin rights Example A-8 Logout from OpenShift Example A-9 Login to OpenShift 5. Use the  oc policy  command to assign the  user1  user cluster admin rights as shown in  Example A-7. 6. Logout using the  oc logout  command as shown in Example A-8. 7. Login back to OpenShift CLI as user  user1  as shown in Example A-9. 8. List again all currently defined OCP users using the  oc get  command. Now you see the  user1  in the list as shown in Example A-10 on page 195. 194  Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1