# Search groupRules by rule name

**URL:** <https://devforum.okta.com/t/search-grouprules-by-rule-name/25374>\
**Category:** Questions\
**Created:** [September 21, 2023, 12:46pm UTC](https://devforum.okta.com/t/search-grouprules-by-rule-name/25374 "2023-09-21T12:46:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![izum286](https://avatars.discourse-cdn.com/v4/letter/i/d07c76/32.png) [@izum286](https://devforum.okta.com/u/izum286)\
**Post date:** [September 21, 2023, 12:46pm UTC](https://devforum.okta.com/t/search-grouprules-by-rule-name/25374/1 "2023-09-21T12:46:39Z")

</div>

Hi there!  
Using an okta-sdk-nodejs and trying to find group rule by rule name.  
As far as I see, I can pass query params to listGroupRules() like:  
listGroupRules(queryParameters?: {  
limit?: number,  
after?: string,  
search?: string,  
expand?: string,  
}): Collection;

But the question is - anyone have an example what should I pass as a search query there?  
Tried to find some info from OKTA documentation - no luck, no examples at all:  
[Search Group Rules | Okta](https://help.okta.com/wf/en-us/content/topics/workflows/connector-reference/okta/actions/searchgrouprules.htm)

---

<div class="post-metadata">

**Author:** ![poul-okta](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@poul-okta](https://devforum.okta.com/u/poul-okta)\
**Post date:** [September 26, 2023, 5:19pm UTC](https://devforum.okta.com/t/search-grouprules-by-rule-name/25374/2 "2023-09-26T17:19:05Z")

</div>

Hello,

I’d be happy to help with that. The syntax for the expressions that should be passed in the search parameters would be the same as the filter expressions which are documented at the link below:

> **[Core Okta API | Okta Developer](https://developer.okta.com/docs/reference/core-okta-api/#filter)**
>
> Learn how the Okta API works and learn about the compatibility rules and design principles.

For example, in order to find group rule name that starts with "Prod - ", the search param will be:

`name sw "Prod - "`

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 16, 2024, 12:40am UTC](https://devforum.okta.com/t/search-grouprules-by-rule-name/25374/3 "2024-02-16T00:40:24Z")

</div>

Closed on February 16, 2024, 12:40am UTC


