Step 1: Create email addresses

  1. In the Admin Console, go to WorkflowWorkflows Console.

  2. In the Workflows Console, click New Flow.

  3. Click Add Event, and then select API Endpoint from the Okta Apps section.

  4. 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)

  1. In the Workflows Console, click Function, and then select Concatenate.

  2. Drag and drop the firstName value from the API Endpoint card into text1 into the Concatenate card.

  3. In text 2, enter a period.

  4. Drag and drop the lastName value from the API Endpoint into the input field.

  5. To customize the output field name on the Concatenate card, click the output field and select Customize.

  6. Enter prefix in the display name field.

  7. In the Workflows Console, click Add AnotherFunctionTextConcatenate.

  8. Drag and drop the prefix value from the previous Concatenate card to text 1 of the new Concatenate card.

  9. In text 2, enter @domain.com where domain.com is your preferred domain name.

  10. Click the output field of the Compose card and select Customize.

  11. Enter emailaddress in the display name field.

  12. In the Workflows Console, click Add AnotherFunctionTextCompose.

  13. In the Compose card, enter the following: /api/v1/users?search=profile.email sw_ " "&limit=99 (leave a blank space after sw.)

  14. Drag and drop the emailaddress field from the Concatenate card to the blank space after sw in the Compose card.

  15. To construct an API call, in the Workflows Console, go toAdd AnotherApp Action.

  16. Select Okta from the menu of applications, and then choose Custom API Action from the Actions menu.

  17. In the Custom API Actions card, select GET and then click Done.

  18. In the Custom API Actions card, clear the Query and Headers boxes, and then click Done.

  19. Drag and drop the output from the Compose card to the Relative URL field of the Custom API Action card.

Next steps

Step 2: Create an If/Else decision branch