This is a cache of https://docs.openshift.com/container-platform/4.11/applications/projects/creating-project-other-user.html. It is a snapshot of the page at 2024-11-22T14:48:34.045+0000.
Creating a project as another <strong>user</strong> - Projects | Building applications | OpenShift Container Platform 4.11
×

Impersonation allows you to create a project as a different user.

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 a user when you create a project

You can impersonate a different user when you create a project request. Because system:authenticated:oauth is the only bootstrap group that can create project requests, you must impersonate that group.

Procedure
  • To create a project request on behalf of a different user:

    $ oc new-project <project> --as=<user> \
        --as-group=system:authenticated --as-group=system:authenticated:oauth