Description of problem: I found that the OS user is not able to get his own UID. The user needs cluster-admin rights to get UID's of all users. He should be able to look up his own UID. For instance github user can access his ID easilly: https://api.github.com/users/tplevko Version-Release number of selected component (if applicable): 3.x Steps to Reproduce: 1. oc get user test --> User "test" cannot list all users in the cluster 2. https://{url}/oapi/v1/users --> the same result
The current user is aliased as ~ $ oc whoami developer $ oc get users '~' NAME UID FULL NAME IDENTITIES developer 578e2223-93e9-11e7-b947-507b9dac97ff anypassword:developer $ oc get users '~' -o yaml apiVersion: v1 groups: [] identities: - anypassword:developer kind: User metadata: creationTimestamp: 2017-09-07T16:26:46Z name: developer resourceVersion: "836" selfLink: /oapi/v1/users/developer uid: 578e2223-93e9-11e7-b947-507b9dac97ff @Tomas please close if this works for you.
@Mo, it works! Thank you for the help, I couldn't find it anywhere. I think this could be a good input into the knowledge base.