- Okta Expression Language (OEL)
Review the steps or video below to resolve the issue.
- Log in to the Okta Dashboard.
- Click on Directory and Profile Editor.
- Identify the variable name of the user attribute by looking at the User (default) profile.
- Click on Applications and select the Secure Assertion Markup Language (SAML) app that will have the custom attribute added.
- On the General tab, scroll down to the SAML Settings section.
- Click Edit to launch the App Configuration wizard.
- In the Attribute Statements (Optional) section, enter the name of the SAML attribute to be added.
- In the Value text box, enter the variable name from the Okta profile, prefixed with "user." (for example, user.title).
- Click Next and Finish to save the new SAML attribute statement.
- Navigate back to the App Configuration wizard and enter the following expression in the Value text box.
String.removeSpaces(String.replace(String.replace(user.attribute, "&", "_"), ",", "_"))
This expression will remove spaces and replace special characters, ampersand (&) and comma (,) with underscores from a mapped attribute in Okta.
Related References
