Configure Custom Username Attributes for Okta OIDC Identity Provider Integrations
Last Updated:
Overview
In an OpenID Connect (OIDC) Identity Provider (IdP) integration, Okta can use an attribute as the IdP username format only if the source org explicitly includes that attribute in the OIDC assertion. Administrators must configure the source IdP to include the custom attribute in the OIDC assertion, and then map it to the login attribute in the target Okta org.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- OpenID Connect (OIDC) Identity Provider (IdP)
Solution
NOTE: The exact steps for this configuration vary depending on the third-party IdP. If using an Okta-to-Okta (Org2Org) integration as the source, follow the example steps in the next section.
Configure the custom attribute in the source Okta organization
As an example for an Okta-to-Okta (Org2Org) integration, create a custom attribute in the source Okta organization and map it to a base attribute.
- Create a custom attribute for the User (default) Okta profile.
- Go to Profile Editor.
- Select Apps.
- Select the application.
- Select Mappings.
- Select the Okta User to App tab.
- Map the attribute to a base attribute.
Review the Okta User to App tab configuration.
Map the custom attribute in the target Okta organization
Map the custom attribute to the login attribute in the target Okta organization.
- Go to Profile Editor.
- Select Identity Providers.
- Select the Identity Provider.
- Select Mappings.
- Select the IdP to Okta User tab.
- Map the custom attribute to
login.
Review the IdP to Okta User tab configuration and the final result.
