Group Order for Flairs

I have multiple groups in my Discourse. How do I define the “order or precedence” for the groups?

Use-case:

I have users who are members of my courses (who get flair A) and very limited group of inner circle members (who get flair B).

All inner circle members are also members of my courses.

Since being an inner circle member is more prestigious, i want them to have flair B displayed, not flair A.

How do I configure that?

1 Like

I think that you can turn on “make primary group” for group B, which will make it so that flair B has priority.

Automatically set as primary group

2 Likes

I’ve tried that but didn’t work for me. Does it work historically? Meaning it will work for all the users who are already members of both groups?

Additionally - what about having not just two but three groups? This is indeed my actual use-case, as beside course members (flair A), and inner circle members (flair B), I also have mentoring clients (flair C).

I wonder how to set it up properly.

1 Like

You may need to give users instructions to set group to primary in their user preferences.

Alternatively an Automation may work. However this requires some SQL knowledge to do if a script doesn’t already exist. So you may need to consider sponsoring a script for automation(this plugin is part of core) in Marketplace

2 Likes

If it’s SQL-based then I’ll be happy to jump in and do it myself - I’m just learning Discourse, but work with SQL for ~20 years now.

I’ll keep digging.

1 Like

This topic has some info on it

1 Like