Best Practice for Automating Titles by Group + Trust Level Combinations

Hi,

I’m looking for the best way to automatically assign user titles based on a combination of group membership and trust level. For example:

  • If a user is in group A and has trust level 1, their title should be “A TL1”
  • If a user is in group A and has trust level 2, their title should be “A TL2”
  • If a user is in group B and has trust level 1, their title should be “B TL1”
  • …and so on

From what I’ve found so far, the main method is:

  1. Create a separate group for each group + trust level combination (e.g. a-tl1, a-tl2, b-tl1, etc) using the Dynamic Groups plugin,
  2. Set a default title for each of these groups.

While this seems to work, it requires creating and maintaining a large number of groups if there are many combinations.

My questions:

  • Is this setup (many dynamic groups and each with its own default title) the best or only way to keep titles in sync automatically?
  • Is there another approach (using Discourse core, Automations, or another plugin) to dynamically assign titles based on conditions like group + trust level, without having to manage so many additional groups?

Any advice or shared experiences would be greatly appreciated. Thanks in advance!

Would it work for you to configure the title based on the group membership (A or B) and have a component that adds the title based on the trust level behind that?

I think then you wouldn’t need all those combined subgroups :thinking:

Another idea: Maybe the plugin which automatically sets the trust level as the title could be used as a base for a more complex title update based on trust level and group membership

3 Likes

Thank you for your suggestions

Unfortunately, I don’t have any programming experience myself, so I’m not able to develop or modify plugins. I have already reached out to the plugin author to ask if this feature (combining group membership and trust level for titles) could be added, or if they have any advice.

If it’s the user’s primary groups, I think as you mentioned in the other topic, that would make things a lot easier.

Then, you can get their primary group via user.primary_group and then set the title using user.title.

@joo I have added the setting add_primary_group_title (default off) that:

  • adds the user’s primary group as the title
  • text behind the title, eg:

         can be edited using the settings as before.

Used a hint of ask.discourse.com magic.

P.S. If you’re wondering how I indented the ‘can’, I used  . Sorry guys.

1 Like

Hi! Thank you for your update and support!

I may not have explained my requirement clearly before, so I want to clarify it again with an easy-to-understand example:

Suppose our forum has two main groups:

  • Group A: Designers
  • Group B: Developers

For each group, I want users with different trust levels to get a completely different title, like this:

For Designers group:
Trust Level 1 → “Junior Designer”
Trust Level 2 → “Designer”
Trust Level 3 → “Senior Designer”
Trust Level 4 → “Chief Designer”

For Developers group:
Trust Level 1 → “Junior Developer”
Trust Level 2 → “Developer”
Trust Level 3 → “Senior Developer”
Trust Level 4 → “Tech Lead”

So, if someone is in “Designers” with TL3, their title should be “Senior Designer”.
If they are in “Developers” with TL2, the title should be “Developer”.

I would like to be able to set these rules for each group and trust level, and have titles assigned automatically as users’ groups or trust levels change.

Is there any advice you could share on how to achieve this, or would you consider adding this as a new feature in your plugin?

Thank you very much!

1 Like

Also, I am trying to achieve this on my test site: http://ask.discourse.com/.
I don’t have programming experience, so I am not sure if it’s possible to implement this myself.

I might use a placeholder value, e.g. {group_nane} in the text box so that it can be easier to edit the title. I’ll take a look.

You might want to check out: