How to Search for Users with Custom Criteria and Save Results to a Table in Okta Workflows

In this guide:

Okta Workflows guides

Okta Workflows guides offer questions and answers from the Okta Workflows community office hours. They also come from the #okta-workflows channel on the Mac Admins Slack and other places. Read all the other guides.

How to search for users with custom criteria and save results to a table in Okta Workflows?

This guide will teach you how to search for users using custom criteria save them to a table.

Search and save users to a table

The automation has two flows:

  1. List users: Clears the table, then searches for users.
  2. Save user to table: The helper flow receives each user and saves it as a row in the table.

Search users

This flow searches for users.

Search for users using custom criteria.
Search for users using custom criteria.

How the flow works

  1. Tables โ€“ Clear Table clears all existing rows from the table.
  2. Okta โ€“ List Users with Search searches for users matching the status (Deactivated) and custom search criteria. The custom criteria uses the co (contains) operator to check for the email domain. Each matching user is streamed to the helper flow.

Save user

This flow saves users to a table.

Save a user to a table.
Save a user to a table.

How the helper flow works

  1. The Helper Flow card receives a user record object with all user fields and reads the Email and ID fields.
  2. The Tables โ€“ Create Row card saves the user ID and email as a new row in the table.

Deactivated users table

The table holds deactivated users.

Workflows_Searchandsavetable2
Deactivated users users.

Okta Workflows resources

Leave a Reply

Discover more from Max Katz

Subscribe now to keep reading and get access to the full archive.

Continue reading