This is a cache of https://docs.openshift.com/container-platform/4.1/authentication/impersonating-system-admin.html. It is a snapshot of the page at 2024-10-01T00:04:47.603+0000.
Impersonating the system:admin <strong>user</strong> | Authentication | OpenShift Container Platform 4.1
×

API impersonation

You can configure a request to the OpenShift Container Platform API to act as though it originated from another user. For more information, see user impersonation in the Kubernetes documentation.

Impersonating the system:admin user

You can grant a user permission to impersonate system:admin, which grants them cluster administrator permissions.

Procedure
  • To grant a user permission to impersonate system:admin, run the following command:

    $ oc create clusterrolebinding <any_valid_name> --clusterrole=sudoer --user=<username>