Step 1: Create email addresses
-
In the Admin Console, go to .
-
In the Workflows Console, click New Flow.
-
Click Add Event, and then select API Endpoint from the Okta Apps section.
-
In the body fields of the card, enter the following values and value types (in parentheses) by clicking the Aa icon in the field.
-
At the top level, enter
data
(object) -
In the data object, enter
appUser
(object) -
In the appUser object, enter
profile
(object) -
In the profile object, enter
firstName
(text) -
In the profile object, enter
lastName
(text)
-
In the Workflows Console, click Function, and then select Concatenate.
-
Drag and drop the firstName value from the API Endpoint card into text1 into the Concatenate card.
-
In text 2, enter a period.
-
Drag and drop the lastName value from the API Endpoint into the input field.
-
To customize the output field name on the Concatenate card, click the output field and select Customize.
-
Enter prefix in the display name field.
-
In the Workflows Console, click .
-
Drag and drop the prefix value from the previous Concatenate card to text 1 of the new Concatenate card.
-
In text 2, enter
@domain.com
wheredomain.com
is your preferred domain name. -
Click the output field of the Compose card and select Customize.
-
Enter emailaddress in the display name field.
-
In the Workflows Console, click .
-
In the Compose card, enter the following:
/api/v1/users?search=profile.email sw_ " "&limit=99 (leave a blank space after sw.)
-
Drag and drop the emailaddress field from the Concatenate card to the blank space after
sw
in the Compose card. -
To construct an API call, in the Workflows Console, go to .
-
Select Okta from the menu of applications, and then choose Custom API Action from the Actions menu.
-
In the Custom API Actions card, select GET and then click Done.
-
In the Custom API Actions card, clear the Query and Headers boxes, and then click Done.
-
Drag and drop the output from the Compose card to the Relative URL field of the Custom API Action card.