# Is it possible to have the first poster's user group display in the list of the latest/new topics?

**URL:** https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414
**Category:** Feature
**Created:** [March 8, 2022, 2:06pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414 "2022-03-08T14:06:48Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Nemanja\_Memarovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nemanja_memarovic/32/235862_2.png) [@Nemanja\_Memarovic](https://meta.discourse.org/u/Nemanja_Memarovic)
#### Post date: [March 8, 2022, 2:06pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/1 "2022-03-08T14:06:48Z")

</div>

Hi folks 👋

I was wondering if there’s a way to do the following:

- Whenever a user from a certain group is the first poster/creates a topic
- Tag that topic with their group name
- And have that tag (group name) visible only to another user group within the `Latest` or `New` dashboards

I’ve looked into flairs, but they don’t do the trick as they’re not visible on the dashboards. Was thinking of creating a custom plugin like suggested [here](https://meta.discourse.org/t/topic-auto-tagging/54894/18), but we’re not self-hosting so that also doesn’t work.

Thnx!

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 8, 2022, 4:25pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/4 "2022-03-08T16:25:18Z")

</div>

Hi Nemanja 👋🏾 🙂

What you’ve described would be tricky to achieve right off the bat, but maybe we can still help here. Can you share what you’re looking to achieve with this setup? Maybe we can suggest other ways of doing it, like using category and group permissions or so.

---

<div class="post-metadata">

### Author: ![Nemanja\_Memarovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nemanja_memarovic/32/235862_2.png) [@Nemanja\_Memarovic](https://meta.discourse.org/u/Nemanja_Memarovic)
#### Post date: [March 8, 2022, 4:36pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/5 "2022-03-08T16:36:17Z")

</div>

Hi @osioke and thnx for the speedy reply!

What we’re looking into is creating

- a visually easy-to-spot way for
- admins/staff to understand
- what user groups is asking the question

This feature/tag should then only be visible to admins/staff.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 8, 2022, 7:19pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/6 "2022-03-08T19:19:54Z")

</div>

> [@Nemanja\_Memarovic](#):
>
> what user groups is asking the question

Maybe have them post in a category that only that group can create topics in? That’s the easy way.

---

<div class="post-metadata">

### Author: ![Nemanja\_Memarovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nemanja_memarovic/32/235862_2.png) [@Nemanja\_Memarovic](https://meta.discourse.org/u/Nemanja_Memarovic)
#### Post date: [March 9, 2022, 6:56am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/7 "2022-03-09T06:56:14Z")

</div>

> [@pfaffman](#):
>
> Maybe have them post in a category that only that group can create topics in? That’s the easy way.

Thanks for the suggestion! That unfortunately doesn’t work as the topic needs to be visible to the whole community. Tags would be there just for the admins

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 9, 2022, 6:59am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/8 "2022-03-09T06:59:54Z")

</div>

> [@Nemanja\_Memarovic](#):
>
> - a visually easy-to-spot way for
> - admins/staff to understand
> - what user groups is asking the question

And you want this visual way to be seeable from the latest or new topic view (or as you referred to them dashboard) yeah?

Asking to be certain and to see whether flairs can be made visible from the topic view via a theme component.

---

<div class="post-metadata">

### Author: ![Nemanja\_Memarovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nemanja_memarovic/32/235862_2.png) [@Nemanja\_Memarovic](https://meta.discourse.org/u/Nemanja_Memarovic)
#### Post date: [March 9, 2022, 7:03am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/10 "2022-03-09T07:03:17Z")

</div>

> [@osioke](#):
>
> And you want this visual way to be seeable from the latest or new topic view (or as you referred to them dashboard) yeah?
> 
> Asking to be certain and to see whether flairs can be made visible from the topic view via a theme component.

Yep, that’s right, wanna see the group that’s asking the question int the latest/new topic views. Thought that tags would be better as flairs can be seen by anyone, not just admins/staff.

Lemme know if that’s an option though 😀

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 9, 2022, 7:06am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/11 "2022-03-09T07:06:09Z")

</div>

> [@Nemanja\_Memarovic](#):
>
> Thought that tags would be better as flairs can be seen by anyone, not just admins/staff.

Using tags dynamically would be going into custom plugin territory, which may or may not work for your use case. So I am looking at other possible ways.

---

<div class="post-metadata">

### Author: ![Nemanja\_Memarovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nemanja_memarovic/32/235862_2.png) [@Nemanja\_Memarovic](https://meta.discourse.org/u/Nemanja_Memarovic)
#### Post date: [March 9, 2022, 7:21am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/12 "2022-03-09T07:21:10Z")

</div>

> [@osioke](#):
>
> Using tags dynamically would be going into custom plugin territory, which may or may not work for your use case. So I am looking at other possible ways.

Appreciate the help @osioke 🙏

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 9, 2022, 6:24pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/14 "2022-03-09T18:24:59Z")

</div>

And yes! It is possible in a theme component. 🙂

On topics lists we have `primary_group_id` and `flair_group_id` of the user that created the topic… so we should be able to grab the relevant group name or flair using that and use it in the views you mentioned.

This is still custom work though, so you can either use our #Marketplace to do this or do it in-house. 😊🎉

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 10, 2022, 11:17am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/16 "2022-03-10T11:17:22Z")

</div>

I think the flair thing might be your solution, but you can make a category that everyone can read and reply to bit only some can start a new topic.

---

<div class="post-metadata">

### Author: ![Nemanja\_Memarovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nemanja_memarovic/32/235862_2.png) [@Nemanja\_Memarovic](https://meta.discourse.org/u/Nemanja_Memarovic)
#### Post date: [March 14, 2022, 8:32am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/17 "2022-03-14T08:32:34Z")

</div>

> [@osioke](#):
>
> And yes! It is possible in a theme component. 🙂
> 
> On topics lists we have `primary_group_id` and `flair_group_id` of the user that created the topic… so we should be able to grab the relevant group name or flair using that and use it in the views you mentioned.
> 
> This is still custom work though, so you can either use our #Marketplace to do this or do it in-house. 😊🎉

Thnx for the suggestion @osioke, much appreciated. As far as I can tell you’d recommend getting someone from the #Marketplace to do the work?

---

<div class="post-metadata">

### Author: ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)
#### Post date: [March 14, 2022, 9:30am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/18 "2022-03-14T09:30:21Z")

</div>

Falir is definitely the way I’d go too, but it relies on the group being the primary group of the user-- which fails as soon as the user plays with those settings.

Another alternative for this would be to automatically assign a badge to users in the group. This means the staff can just click the name and see from the profile which groups the person is in – not as immediate as flair, but less likely to suffer from user interferance(users can’t remove badges as far as I’m aware).

SQL query for the badge, where in this example “discourse-admins” is the Group slug.

```plaintext
select user_id, created_at granted_at, NULL post_id
from group_users
where group_id = (
  select g.id from groups g where g.name = 'discourse-admins'
)

```

And these are the settings

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/4/240a8aeda30efb547182f352576793fa105ce9df.png)

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [March 14, 2022, 9:38am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/19 "2022-03-14T09:38:39Z")

</div>

> [@Nemanja\_Memarovic](#):
>
> As far as I can tell you’d recommend getting someone from the #Marketplace to do the work?

Yup! I’d also advice doing due diligence as you pick someone from there. If you have any concerns with this, please let me know 🙂

Also see @Tris20’s comment too, it may not be what you want, but it is still a neat idea.

---

<div class="post-metadata">

### Author: ![Nemanja\_Memarovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nemanja_memarovic/32/235862_2.png) [@Nemanja\_Memarovic](https://meta.discourse.org/u/Nemanja_Memarovic)
#### Post date: [March 14, 2022, 9:48am UTC](https://meta.discourse.org/t/is-it-possible-to-have-the-first-posters-user-group-display-in-the-list-of-the-latest-new-topics/220414/20 "2022-03-14T09:48:04Z")

</div>

Thnx for the suggestions @pfaffman and @Tris20, appreciate the help 🙏 We’re looking into a solution that’s visible from the new/latest views so custom theme component might be the best option.
