kubectl auth whoami
kubectl auth whoami
Risk: Safe
What it does
Shows who gate 1 thinks you are: your user name and groups.
When to use it
When a command is refused and you wonder which identity you use.
Example
$ kubectl auth whoamiWho am I in this cluster?
Learn it in: Three gates: authn, authz, admission · Official docs