String Manipulation Using the Okta Expression Language
Last Updated:
Overview
Manipulate strings using the Okta Expression Language (OEL) by applying specific string functions to format, extract, or modify data. Administrators can use these functions to customize user attributes and application mappings.
Applies To
- Okta Classic Engine
- Okta Identity Engine (OIE)
- Okta Expression Language
Solution
Please check the video below for how to manipulate strings using the Okta Expression Language.
How are strings manipulated using the Okta Expression Language?
Identify the appropriate OEL string function, review the required input parameters, and apply the syntax to achieve the desired return type and output.
|
Function |
Input parameter signature |
Return type |
example |
Output |
|---|---|---|---|---|
|
|
(String str, String suffix) |
String |
|
This is a test |
|
|
(String separator, String... strings) |
String |
|
This,is,a,test |
|
|
|
|
|
Thisisatest |
|
|
(String input) |
Integer |
|
4 |
|
|
(String input) |
String |
|
Thisisatest |
|
|
(String input, match, replacement) |
String |
|
That at a test |
|
|
(String input, match, replacement) |
String |
|
That is a test |
|
|
(String input, String searchString) |
Boolean |
|
true |
|
|
|
|
|
false |
|
|
(String input, String defaultString, String... keyValuePairs) |
String |
|
default |
|
|
|
|
|
value1 |
|
|
|
|
|
value2 |
|
|
|
|
|
value1 |
|
|
(String input, int startIndex, int endIndex) |
String |
|
is is a |
|
|
(String input, String searchString) |
String |
| |
|
|
(String input, String searchString) |
String |
|
abc |
|
|
(String input) |
String |
|
THIS |
|
|
(String input) |
String |
|
this |
