Update an Application Username Using Okta Expression Language
Last Updated:
Overview
Administrators can update application usernames using Okta Expression Language OEL. Configuring a custom application username format in the application sign-on settings applies the new format to assigned users.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Okta Expression Language (OEL)
- Application Username Format
Solution
How is an application username updated using Okta Expression Language?
Configure a custom application username format in the application sign-on settings using Okta Expression Language to update the username format for assigned users.
- Navigate to the Okta Admin Console and go to Applications > Applications.
- Select the target application.
- Go to the Sign On tab.
- Select Edit in the Settings section.
- Locate the Application username format dropdown menu and select Custom.
- Enter the appropriate Okta Expression Language expression into the text field.
- Select Save.
What are examples of Okta Expression Language expressions for application usernames?
Review the following Okta Expression Language examples to understand how to format application usernames using user profile attributes.
- Format the username as
FirstName.LastName:
user.firstName + "." + user.lastName
- Format the username as
FirstNameLastName:
user.firstName + user.lastName
- Format the username as
FirstInitialLastName:
substring(user.firstName, 0, 1) + user.lastName
