# ListGroupsAsync API doesn't allow combining filters

**URL:** <https://forum.heroiclabs.com/t/listgroupsasync-api-doesnt-allow-combining-filters/4850>\
**Category:** Client Libraries\
**Tags:** server-framework, sdk-unity\
**Created:** [January 8, 2024, 1:02pm UTC](https://forum.heroiclabs.com/t/listgroupsasync-api-doesnt-allow-combining-filters/4850 "2024-01-08T13:02:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theo-Rapidfire](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@Theo-Rapidfire](https://forum.heroiclabs.com/u/Theo-Rapidfire)\
**Post date:** [January 8, 2024, 1:02pm UTC](https://forum.heroiclabs.com/t/listgroupsasync-api-doesnt-allow-combining-filters/4850/1 "2024-01-08T13:02:12Z")

</div>

Hi,

I’m trying to list all open groups where the name matches a user-defined search criteria, but I’m getting an error whenever I try to combine the name filter with the ‘open’ requirement as such:

```auto
client.ListGroupsAsync(conn.session, name: $"{searchCriteria}%", open: true, limit: 20);

```

The following exception is thrown:

```auto
ApiResponseException(StatusCode=400, Message='name filter cannot be combined with any other filter', GrpcStatusCode=3)

```

If I understand the documentation correctly, this should be allowed: [Heroic Labs Documentation | Groups](https://heroiclabs.com/docs/nakama/concepts/groups/#list-and-filter-groups)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/4/485f6037a06db32e7faa53cfcd458460a150ba11.png)

If I only use one criteria, no exception is thrown.

As a workaround I’m using client-side filtering of the results, so it’s not a critical issue, but would be nice to clarify whether this is the intended behavior or just a bug 🙂

- Nakama 3.18.0 (via Docker), TS
- Unity3D SDK: 3.9.0

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [January 8, 2024, 7:31pm UTC](https://forum.heroiclabs.com/t/listgroupsasync-api-doesnt-allow-combining-filters/4850/2 "2024-01-08T19:31:04Z")

</div>

Hello @Theo-Rapidfire,

This behavior is by design, the documentation states:

> The `name` filter is case insensitive and **mutually exclusive to the reminder filters.**

If the `name` filter is used, it cannot be combined with the other filters.

---

<div class="post-metadata">

**Author:** ![Theo-Rapidfire](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@Theo-Rapidfire](https://forum.heroiclabs.com/u/Theo-Rapidfire)\
**Post date:** [January 9, 2024, 11:35am UTC](https://forum.heroiclabs.com/t/listgroupsasync-api-doesnt-allow-combining-filters/4850/3 "2024-01-09T11:35:56Z")

</div>

Oh wow, I’m blind. Thanks! I’ll stick with the client-side filtering then.
