# Allow to exclude groups in /filter

**URL:** https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466
**Category:** Feature
**Tags:** completed, topic-filter
**Created:** [July 13, 2026, 3:50pm UTC](https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466 "2026-07-13T15:50:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![andresfromsonar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andresfromsonar/32/566736_2.png) [@andresfromsonar](https://meta.discourse.org/u/andresfromsonar)
#### Post date: [July 13, 2026, 3:50pm UTC](https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466/1 "2026-07-13T15:50:58Z")

</div>

Hey there! I’ve noticed that the `/filter` URL supports excluding threads in which certain users have participated (`-users`) but not to exclude threads in which members of certain groups have participated (there is no `-group`, it doesn’t work). It would be nice to be able to exclude groups this way. I want to use it to have a view of threads in which no members of our “staff” group have participated yet.

Sources: [Filtering topic lists in Discourse](https://meta.discourse.org/t/filtering-topic-lists-in-discourse/375558)

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [July 14, 2026, 2:14am UTC](https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466/2 "2026-07-14T02:14:43Z")

</div>

Seems like a good fit for the patterns we already support, and the use case you shared makes sense to me as well.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [July 14, 2026, 10:07pm UTC](https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466/4 "2026-07-14T22:07:27Z")

</div>

Thanks for the suggestion! should be a fairly straightforward addition, working on it here

> <https://github.com/discourse/discourse/pull/41714>
>
> Requested here: https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/4…07466
> 
> This adds the ability to exclude groups from filter on the \`/filter\` route using \`-group:\` similar to the \`-users:\` exclusion 
> 
> \<img width="500" alt="image" src="https://github.com/user-attachments/assets/06a657f2-21ac-4011-91b1-27e1bbcd9c18" /\>
> \<img width="500" alt="image" src="https://github.com/user-attachments/assets/b939be6d-73d4-4c63-b264-2ad30045d6ae" /\>

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [July 15, 2026, 1:42pm UTC](https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466/5 "2026-07-15T13:42:35Z")

</div>

This has been merged and will be available the next time your site is updated!

---

<div class="post-metadata">

### Author: ![andresfromsonar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andresfromsonar/32/566736_2.png) [@andresfromsonar](https://meta.discourse.org/u/andresfromsonar)
#### Post date: [July 15, 2026, 2:04pm UTC](https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466/6 "2026-07-15T14:04:55Z")

</div>

That’s great to hear, I’m impressed by the quick turnover! Thanks

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [July 20, 2026, 12:00pm UTC](https://meta.discourse.org/t/allow-to-exclude-groups-in-filter/407466/7 "2026-07-20T12:00:24Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.
