Manually provisioning a user when using the lookup mapping method
You can manually provision users when the lookup mapping method is enabled. The lookup method disables automatic identity-to-user mapping during login, requiring manual provisioning of each user after configuring the identity provider.
Prerequisites
-
You have installed the OpenShift CLI (
oc).
Procedure
-
Create an Red Hat OpenShift Container Platform user:
$ oc create user <username> -
Create an Red Hat OpenShift Container Platform identity:
$ oc create identity <identity_provider>:<identity_provider_user_id>Where
<identity_provider_user_id>is a name that uniquely represents the user in the identity provider. -
Create a user identity mapping for the created user and identity:
$ oc create useridentitymapping <identity_provider>:<identity_provider_user_id> <username>