EX280 User And RBAC Management Practice Question
An administrator needs to provision a new user named 'sarah' using the HTPasswd identity provider. After updating the htpasswd file and secret, Sarah logs in successfully. What command should the administrator run to verify that OpenShift has successfully created the corresponding User object for Sarah?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
oc get user sarah
When an identity provider successfully authenticates a user, OpenShift automatically creates a corresponding User object. You can verify this with 'oc get user sarah'.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
oc get account sarah
Why it's wrong here
Incorrect. There is no 'account' resource kind in OpenShift.
- ✓
oc get user sarah
Why this is correct
Correct. The 'oc get user' command queries the API for the automatically generated User resource.
- ✗
oc get identity htp:sarah
Why it's wrong here
Incorrect. While identities link IDPs to users, the primary OpenShift resource representing the user account is the User object.
- ✗
oc describe htpasswd-user sarah
Why it's wrong here
Incorrect. 'htpasswd-user' is not a valid resource type.
About these practice questions
Courseiva writes every EX280 question from scratch — 509 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Red Hat exam blueprint
This EX280 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX280 exam.