In a Dev category discussion titled ‘Assign new users to a group automatically’, Ultim8 seeks to automatically flag new users as ‘Not Verified’ via CSS upon signup, to prevent impersonation and maintain username consistency with a related forum (Samsung SmartThings). Currently, admins manually assign users to groups like ‘New_User’, ‘pending_verification’, ‘non_ST’, or ‘verified_ST’ based on cross-forum verification. downey suggests using the existing ‘new-user’ class, while pfaffman proposes styling users not in the ‘Verified’ group. riking provides a detailed CSS selector targeting users not in specific groups, which Ultim8 requests simplified. riking clarifies the code and suggests a UI improvement to move group classes higher in the DOM. jomaxro explains this was a feature request, not a user instruction. Ultimately, Ultim8 reports success: their team’s CSS guru simplified the rule using the underscore in group names, applying the banner with .topic-post.regular:not([class*=_]) .username:after { content: "user verification not started"; }. This now auto-flags all ungrouped new users immediately upon signup.
Hey everyone, just signed up here but been using Discourse for a while now with a community that has just surpassed 400 users.
As the topic title suggests, we’re hoping there is a way to automatically add new users to a specific group. This is so they can be flagged as ‘Not Verified’ using CSS as per the following snapshot:
An alternative could be to have the red flag show for users not in a specific group, but I’m not sure how to do this in the CSS.
That wouldn’t really work for us as a new user could easily progress to trust level 1 before we’ve had a chance to do the verification, and hence the banner would disappear too soon.
At present we are manually adding new users to a group called ‘New_User’ and adding the content based on that group.
To help describe the logic behind the madness I’ll try to explain the circumstances.
Our forum is this:
WebCoRE (WC) is a smartapp that runs on the Samsung SmartThings (ST) platform and our WC forum is a breakaway group from the much much larger ST forum (which is also powered by Discourse).
As the vast majority of WC users are already users on the ST forum, we want them to have priority over their existing usernames, to avoid confusion and maintain consistency between the two forums. We also don’t want our users impersonating established users on ST.
Our current process is as follows:
When someone signs up we manually place them in a group called ‘New_User’ which gives them the red flag next to their names,
Then, as time permits, we manually check if their name exists on the ST forum and if it does we move them to a group called ‘pending_verification’ and the red flag remains.
If it’s a unique name they are moved to a group called ‘non_ST’ and the rad flag goes away.
Unverified users are instructed (via pinned thread banner and welcome email) to send one of the admins a PM on the ST forum, confirming they are the same user, and we then move them to a group called ‘verified_ST’ (and red flag is removed).
What we want to achieve is to have all new users automatically assigned the red flag, immediately upon signup, as at present it is a manual process and they can chat away on the forum for a few hours before one of the admins assigns them to a group.