In this guide:
- Okta Workflows guides
- Search for users using custom search criteria
- Related Okta Workflows guides
- Okta Workflows resources
Okta Workflows guides
Okta Workflows guides are questions and answers from the community office hours, the #okta-workflows channel on MacAdmins Slack, and other places. Read all the other guides.
How to search for users using custom search criteria in Okta Workflows?
This guide will teach you how to search for users using custom search criteria in Okta Workflows.
Search for users using custom search criteria
The Okta – List Users with Search card has a Custom Search Criteria field. The Operators section lists the operators you can use.

The Custom Search Criteria field uses the List all Users API search parameter.(There is also a filter parameter, and the Okta – List Users with Filter card uses it)
Okta recommends using this parameter for search for best performance.
The API documents’ search parameter lists properties you can use in search.
This operation searches many properties:
- Any user profile property, including custom-defined properties
- The top-level properties
id,status,created,activated,statusChanged, andlastUpdated- The User Type accessed as
type.id
Examples
This card, in this example, uses the status eq “ACTIVE” search expression, which returns all the active users.

The following examples search for either active or suspended users. The card will return users who are active and who are suspended.

The following example uses the pr operator and returns users who have the profile.linkedInProfile field with a non-empty value. linkedInProfile is a custom user profile attribute.

The following examples search for users who were created before (lt: less than) a specified date.

You will notice that the Last Login user field is unavailable when searching.
The following example shows how to search using the Last Login field.

The List Users with Search card returns all users. The card passes the user list to the List—Filter card, which filters the list for users whose last login was before a specified date.
Related Okta Workflows guides
- Search Table by Date in Okta Workflows.
- Searching a Table Using a Custom Filter in Okta Workflows.
- How to Search a Card’s JSON Response in Okta Workflows.
- How To Search for Groups Using Custom Search Criteria in Okta Workflows.
Okta Workflows resources
🍫 Get help from Workflows specialists during weekly community office hours.
📺 Learn from Workflows videos.
🛟 Ask questions and share your flows on the Okta Workflows community forum.
🙋🏻♀️ Get help from the community: join the #okta-workflows channel on MacAdmins Slack.
Leave a comment