Skip to content

Instantly share code, notes, and snippets.

@protosam
Last active March 22, 2022 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save protosam/bc66627be228292455695eb645f8296e to your computer and use it in GitHub Desktop.
Save protosam/bc66627be228292455695eb645f8296e to your computer and use it in GitHub Desktop.

Relevant Resources

User accounts are a part of the user.openshift.io group. The kinds available are

groups / group
identities / identity
users / user
useridentitymappings / useridentitymapping

Users have identities mapped directly on the user CR. The useridentitymapping CR seems to be just API related.

What groups is a user in?

$ oc get groups -ojson | jq -r '.items[] | select(.users | index("OPENSHIFT USERNAME"))'

Further Reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment