# Ability to assign icons to user groups

**URL:** https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567
**Category:** Feature
**Tags:** groups
**Created:** [February 20, 2026, 3:54am UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567 "2026-02-20T03:54:31Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![long](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@long](https://meta.discourse.org/u/long)
#### Post date: [February 20, 2026, 3:54am UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/1 "2026-02-20T03:54:31Z")

</div>

Would like to be able to assign icons to user groups, and have them display next to the username in posts, on profiles, and on profile cards, the same way the half-shield is shown for admins and moderators. Also, the ability to easily change the icons for mods and admins.

Should be very simple as a core feature.

I know you can add avatar flair to a group, but that just doesn’t look good. Having the icon next to the name is ideal.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [February 19, 2026, 11:04pm UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/2 "2026-02-19T23:04:53Z")

</div>

So if you grant this badge and add the user to the group, then add these badges to the badges setting of this Theme Component (if you installed it), it should display next to the username.

However, there is most likely a simpler way, except that it would need some code as a Theme Component.

---

<div class="post-metadata">

### Author: ![long](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@long](https://meta.discourse.org/u/long)
#### Post date: [February 19, 2026, 11:07pm UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/3 "2026-02-19T23:07:47Z")

</div>

Yeah I tried using this. Doesn’t work. Trying to find a much simpler way. The add that shield icon to mods and admins. Has to be a way to apply icons to tother groups. Seems to many simple things are very difficult.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [February 19, 2026, 11:09pm UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/4 "2026-02-19T23:09:57Z")

</div>

I can try tinkering with this idea and see if I can make it work. No promises, though, as I’m quite busy today. But I think it’s certainly possible.

To confirm, you only want this to show in posts? Or everywhere?

---

<div class="post-metadata">

### Author: ![long](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@long](https://meta.discourse.org/u/long)
#### Post date: [February 19, 2026, 11:14pm UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/5 "2026-02-19T23:14:16Z")

</div>

Posts, Profile card, profile page, etc.

Just like the default admin/mod shield icon. It displays next to the username all over.

And THANK YOU. Would be awesome to have the ability to do this!

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [February 20, 2026, 3:46am UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/6 "2026-02-20T03:46:22Z")

</div>

Okay so it looks like it’s more complicated than it seems? The icon is made in a function, so I can’t override it (I think?). It would likely have to be DOM manipulation.

Also, should this be moved to a separate topic?

@long I’ll continue to look for solutions to do this (not giving up yet!)

---

<div class="post-metadata">

### Author: ![long](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@long](https://meta.discourse.org/u/long)
#### Post date: [February 20, 2026, 11:22am UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/7 "2026-02-20T11:22:12Z")

</div>

Thank you! I spent a few hours with ChatGPT last night and couldb’t crack it.

---

<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: [February 20, 2026, 3:00pm UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/8 "2026-02-20T15:00:45Z")

</div>

> [@long](#):
>
> I know you can add avatar flair to a group, but that just doesn’t look good.

Can you elaborate? it’s not likely we’d add a dedicated feature that’s essentially the same as flair but in a different position, so it would be helpful to know what the issues with flair are if it needs to be improved.

A theme component is the best way to go about this, but there are going to be multiple paths to add it in different contexts (in posts, on profiles, in the user directory, etc) .

I’ve built an example theme component here — this shows the group flair icon after the username in the post, rather than on the avatar.

[https://github.com/awesomerobot/discourse-flair-after-username-component](https://github.com/awesomerobot/discourse-flair-after-username-component)

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/0/c/50ce3c13b3f7ac5215bf35de604c5696cc809dd8.png)

> [@long](#):
>
> Seems to many simple things are very difficult.

I think you could give us a little grace here, there are many platforms where a change like this isn’t possible at all!

---

<div class="post-metadata">

### Author: ![long](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@long](https://meta.discourse.org/u/long)
#### Post date: [February 20, 2026, 3:08pm UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/9 "2026-02-20T15:08:36Z")

</div>

This is exactly what I was looking to do. The “Flair” is the same icon…just not in the best position as some user profile images make it hard to see.

That other part should have been “so” many….not too. And it wasn’t directed at Discourse. It was directed at mysefl lol. I’m not the best at this stuff. I will check out that component later today! Also, I figured out how to accomplish some things in the Signatures plugin – not sure if [these tweaks](https://meta.discourse.org/t/discourse-signatures/42263/203) are helpful to be added to the plugin.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [February 21, 2026, 9:51am UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/10 "2026-02-21T09:51:43Z")

</div>

@long I think I managed to do it.

[https://github.com/NateDhaliwal/add-custom-icons-to-username](https://github.com/NateDhaliwal/add-custom-icons-to-username)

Note that if the user is in 2 groups where both are in the settings, the first one in the settings takes precedence.

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/1/9/819fe2fe647d67795bfca708af96d697545ad4c5.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/8/f/d8f49a89770d5ee0105cd104d4a7ba062bcd7111.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/2/0/620055b9c177b3e064c2f394c8e18f667d3ab355.png)

Settings are pretty self-explanatory:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/1/8/51811338a17490a2ac0e169dd1a94c555aecd346.png)

Please report back if you have any problems!

* * *

Note that this is just a proof-of-concept. I will not be maintaining this forever.

---

<div class="post-metadata">

### Author: ![long](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@long](https://meta.discourse.org/u/long)
#### Post date: [February 21, 2026, 11:44am UTC](https://meta.discourse.org/t/ability-to-assign-icons-to-user-groups/396567/11 "2026-02-21T11:44:31Z")

</div>

Amazing, will check it out!!!
