In a discussion titled “Group Order for Flairs” under the Support category, ludwikc asks how to configure group precedence so that users belonging to multiple groups (e.g., course members with flair A and inner circle members with flair B) display the more prestigious flair (B). bloomexperiment suggests enabling “Automatically set as primary group” for group B, though ludwikc reports it didn’t work and asks whether it applies to existing users or scales to three groups (adding mentoring clients with flair C). Heliosurge recommends either instructing users to manually set their primary group or using a custom automation script — potentially SQL-based — and points to a meta topic on custom automations. ludwikc confirms comfort with SQL and willingness to build the solution, while Heliosurge directs them to further documentation. The thread reflects a common need for hierarchical flair assignment in multi-group Discourse communities and explores both UI and code-based solutions.
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).
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