<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Search for Users Using Custom Search Criteria in Workflows
Workflows
Okta Classic Engine
Okta Identity Engine
Overview

This article describes how to search for users using custom search criteria in Okta Workflows.

Applies To
  • Okta Workflows
Solution

The Okta – List Users with Search card has a Custom Search Criteria field. The Operators section lists the operators that can be used.

List Users with Search card    

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.

  • For best performance, it is recommended to use this parameter for search.

The API documents' search parameter lists properties that can be used in the search.

This operation searches many properties:

  • Any user profile property, including custom-defined properties.
  • The top-level properties idstatuscreatedactivatedstatusChanged, and lastUpdated.
  • 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:

Search for active users     

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

active or suspended users   

  • The following example uses the pr operator and returns users who have the profile.linkedInProfile field with a non-empty value:

Search for users who have a field present   

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

Search for users created before a date

It might be noticed that the Last Login user field is unavailable when searching.

 

  • The following example shows how to search using the Last Login field:

Search for users with the last login before a date   

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 References

 

Loading
Search for Users Using Custom Search Criteria in Workflows