Okta Workflows How-To: Search for groups using custom search criteria

About the Author

19 December 2022 Time to read: ~

A group of individuals gathered around a laptop in a modern office setting

Okta Workflows is a no-code platform for automating identity processes. 

This blog post is based on a question asked during office hours or the #okta-workflows channel in MacAdmins Slack: How to search for groups using custom search criteria? 

Getting started

The Okta – Search Groups card allows you to search for groups in your organization using custom search criteria.

In this example, the card will return all groups that start with No-code.

The Okta Search Groups card in Workflows, demonstrating how to use the Custom Search Criteria field to find groups starting with "No-code". Search groups

The Custom Search Criteria field has:

  • profile.name – path to the group name
  • sw – starts with

Note: You need to show the Custom Search Criteria field when adding the card, or click ⚙️> Choose fields after the card has been added.

Testing the card returns two groups that start with No-code:

Test Search Groups window in Okta Workflows, showing a custom search for groups starting with "No-code". Search result

In addition to sw (starts with) operator, you can use other operators:

A table listing supported SCIM protocol operators, showing their descriptions and matching behaviors. Search operators

Need to create a custom list filter? Check out the guide below.

Learn How to Create a Custom List Filter in Okta Workflows

Get your Workflows questions answered

Do you have a question about Okta Workflows? Not sure how to build a flow? Join the weekly community office hours to get help. 

About the Author

Continue your Identity journey