Step 1: Create email addresses

To create email addresses:

  1. In Admin Console, go to Workflow > Workflows console.

  2. In 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 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 Workflows console, click Add Another > Function > Text > Concatenate.

  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 prefered domain name.

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

  11. Enter emailaddress in the display name field.

  12. In Workflows console, click Add Another > Function > Text > Compose.

  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 Workflows console, go to Add Another > App 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

Step 2: Create an If/Else decision branch