<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
Invalid Search Criteria Error Using Workflows to List Users with Filter
Workflows
Okta Classic Engine
Okta Identity Engine
Overview

This article explains the invalid search criteria error when using Workflows List Users with Filter Card.

List Users with Filter

Applies To
  • Workflows
  • Workflows to List Users with Filter Card
Cause

The list user with a filter API call supports the following limited number of properties: 

  • status 
  • lastUpdated
  • id
  • profile.login,
  • profile.email
  • profile.firstName
  • profile.lastName

Also, it supports only the equal eq operator from the standard Okta API filtering semantics, except in the case of the lastUpdated property. This property can also use the inequality operators (gtgelt, and le). Furthermore, it supports only the logical operators and and or. The not operator is not supported. It is case-sensitive for attribute names and query values, while attribute operators are case-insensitive.

 

Solution

Use instead the List users with search card. It will search for users based on the properties specified in the search parameter. 

List users with search card 

  • 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.
  • Accepts sortBy and sortOrder parameters.
    • sortBy can be any single property, for example sortBy=profile.lastName.
    • sortOrder is optional and defaults to ascending.
    • sortOrder is ignored if sortBy is not present.
    • Users with the same value for the sortBy property will be ordered by id.

Related References

Loading
Invalid Search Criteria Error Using Workflows to List Users with Filter