Best Practice for Automating Titles by Group + Trust Level Combinations

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.