# Advanced search filters: posts by group

**URL:** https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027
**Category:** Support
**Tags:** search
**Created:** [December 28, 2022, 4:33pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027 "2022-12-28T16:33:04Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [December 28, 2022, 4:33pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/1 "2022-12-28T16:33:04Z")

</div>

In the advanced search filters, one option is to search using ‘posted by’ but this option doesn’t allow one to select posts from a certain group. For example, all posts from members in the trust\_level\_3 group.

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/3/9/03912a274d525e4bf283f9cb2678059845d1b00e.png)

I don’t think this is a feature nor is it technically a bug, so I’m posting it here as a feature request!

Thanks!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 28, 2022, 6:36pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/3 "2022-12-28T18:36:15Z")

</div>

I think you can use `group:GROUPNAME` to search all the posts posted by a certain group?

The `group_messages:GROUPNAME` one is for searching group inboxes.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [December 28, 2022, 6:37pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/4 "2022-12-28T18:37:49Z")

</div>

You’re awesome.  
I was interested in this topic because I was pretty sure I had achieved search by group here one day, but I couldn’t figure out how to do it again 😅 I must have done it empirically…

~~The API doc [doesn’t mention](https://docs.discourse.org/#tag/Search) this query parameter. It might be nice to add it! 🙂~~  
It has been updated!

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [January 11, 2023, 4:43pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/5 "2023-01-11T16:43:57Z")

</div>

Thanks a lot! That’s very helpful!

While using the filter, I found out that I have users in other groups that I want to exclude. So I want the search to show from group A except those in group (staff) 😁

I hope it works but if it doesn’t then I understand we probably need to use [Data Explorer](https://meta.discourse.org/t/32566?silent=true) for this case 🙂

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [February 1, 2023, 3:13am UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/6 "2023-02-01T03:13:58Z")

</div>

I got back to this as I’m now using it again and when I use the group filter it shows all posts from that specific group (as you explained), but is there a way to filter out the topics i.e. the OP should be from the group. I know it’s possible using [Data Explorer](https://meta.discourse.org/t/32566?silent=true) but again it would be helpful.

Thanks!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 1, 2023, 11:29am UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/7 "2023-02-01T11:29:10Z")

</div>

Would adding `in:first` to the search help with that?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 1, 2023, 11:32am UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/8 "2023-02-01T11:32:39Z")

</div>

If I make this topic a bit wider, but staying in _advanced search_ do we have a list of all `in:` options or are those just same what we can choose at advanced search page?

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [February 1, 2023, 12:05pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/9 "2023-02-01T12:05:06Z")

</div>

Amazing! Exactly what I’m looking for with my question. 😍 Thanks!

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [February 1, 2023, 12:06pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/10 "2023-02-01T12:06:11Z")

</div>

It’d be really nice if all these keywords for advanced search were grouped somewhere!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 1, 2023, 12:12pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/11 "2023-02-01T12:12:22Z")

</div>

I don’t think we currently have one of those. It’s been mentioned a couple of times, and is on one of my many lists, but I haven’t got to it yet. 🙂 I agree it would be good though.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 3, 2023, 12:12pm UTC](https://meta.discourse.org/t/advanced-search-filters-posts-by-group/250027/12 "2023-03-03T12:12:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
