We have something in our plugin-api that should be able to help: discourse/app/assets/javascripts/discourse/app/lib/plugin-api.js at 7c7dd2335bb8590935ca6f7c19cec1f07a61412f · discourse/discourse · GitHub
Here’s an example you can put into the </head> section of your theme:
<script type="text/discourse-plugin" version="0.11">
api.addPosterIcon((cfs, attrs) => {
if (attrs.primary_group_name === "MY_GROUP_NAME") {
return { icon: 'shield-alt', className: 'staff', title: 'staff' };
}
});
</script>
You will need to replace the MY_GROUP_NAME in the above code with the actual name of your group.
Would something like that work for you? I’m not sure how easy it would be to do the same on the user card/profile, but first see if the above code is what you are looking for on posts.