Group where everybody is by default except removed people

AI-generated summary

In a Support category discussion titled “Group where everybody is by default except removed people,” ashledombos asks if it’s possible to create a group that includes all users by default, with the ability to explicitly remove certain users — effectively blacklisting them from specific categories. codinghorror responds that Discourse permissions are group-based and additive, not subtractive, meaning there’s no native way to exclude users from a group that includes everyone. DNSTARS offers a workaround: create a group with automatic enrollment via popular email domains, then use a script to manage edge cases. Alternatively, they suggest using Trust Levels — requiring new users to reach Trust Level 1 (e.g., by reading 10 posts in a welcome topic) before accessing restricted areas, then demoting or suspending unwanted users to TL0. DNSTARS also notes that wildcard domain enrollment would be useful but currently requires a plugin. ashledombos thanks them for the detailed reply and says they’ll explore the solution. In a follow-up, ashledombos clarifies their goal: to grant access to a category only to members of a group that includes all registered users by default, with the ability to remove individuals from that group to revoke access — essentially asking how to automatically add all new users to a group. The core challenge remains: Discourse doesn’t support “all users minus exceptions” groups natively.

Hello,

Is it possible to make a group where everybody is except people removed from it?

In fact a kind of way to explicitely blacklist people from some categories.

No, discourse permissions are group based and additive, not subtractive.

It’s a hack but:

  • Make group
  • Select automatic enrolment via email domains
  • Find the most popular email sign-ups to your site then add them all, the top 10 will account for like 95% of registrants
  • Use/modify the in/out group script here to find people who fall through the gaps hwoever you want to slice it.

The easier way to probably achieve what you want is have trust level 0 (brand new) people climb to level 1 after reading 10 posts inside a visible “intro/welcome to the site” topic, make the rest of the site require trust level 1 then you can kick people you don’t like to level 0 or suspend them.

It’s been mentioned a few times about the site to have wildcard domain enrolment or similar but it needs a plug in, we could do with it to be honest…

Thank you for this detailed reply, I’ll explore your solution.

In fact I imagined giving no rights to all users to a category, except to a group who can read/write. By default everybody is in this group (so all registered users can write in it) but if I remove someone from this group, then he can’t access the category. So my question was more how to put all members in a group (and all new members by default in this group).