An auditor requests a report of all security context constraints currently assigned to a specific user named alice in the cluster. Which OpenShift CLI command should the administrator run?
Trap 1: oc get scc --user=alice
The oc get scc command does not accept a --user filter directly as a standard argument.
Trap 2: oc describe user alice --with-scc
The oc describe user command does not include SCC binding summaries.
Trap 3: oc auth can-i use scc --as=alice
oc auth can-i checks a single verb and resource permission, but doesn't list all matching SCCs across the cluster easily.
- A
oc get scc --user=alice
Why wrong: The oc get scc command does not accept a --user filter directly as a standard argument.
- B
oc describe user alice --with-scc
Why wrong: The oc describe user command does not include SCC binding summaries.
- C
oc auth can-i use scc --as=alice
Why wrong: oc auth can-i checks a single verb and resource permission, but doesn't list all matching SCCs across the cluster easily.
- D
oc adm policy who-can use scc
The oc adm policy who-can command allows administrators to inspect permissions and SCC associations for users and service accounts.