mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * authentication/understanding-identity-provider.adoc
|
|
|
|
[id="identity-provider-provisioning-user-lookup-mapping_{context}"]
|
|
= Manually provisioning a user when using the lookup mapping method
|
|
|
|
Typically, identities are automatically mapped to users during login. The `lookup` mapping method disables this automatic mapping, which requires you to provision users manually. If you are using the `lookup` mapping method, use the following procedure for each user after configuring the identity provider.
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed the {oc-first}.
|
|
|
|
.Procedure
|
|
|
|
. Create an {product-title} user:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create user <username>
|
|
----
|
|
|
|
. Create an {product-title} identity:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ 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:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create useridentitymapping <identity_provider>:<identity_provider_user_id> <username>
|
|
----
|