Nested groups or auto-sync membership: mention all sub-group members with a single @mention

AI-generated summary

In the Support category, Ryan_Scott requested a feature to automatically sync membership across nested groups. Managing 12 NASA Analysis Working Groups (AWGs) with over 1,700 members, they currently face the tedious and error-prone task of manually @mentioning each group to reach the entire community. Their attempts to create a static parent group or use an API script failed because membership changes in sub-groups do not automatically reflect in the parent group.

They proposed two solutions: native nested groups (where a parent group includes other groups as members) or an auto-sync trigger that updates a parent group whenever a user joins or leaves a child group. They noted this is a common issue for communities with sub-communities.

Moin suggested using the Discourse Dynamic Groups plugin to create an automatic group aggregating members from other groups. Ryan_Scott expressed gratitude and confirmed they would test this solution.

Use case: I manage 12 Analysis Working Groups (AWGs) for NASA’s Open Science Data Repository, with ~1,700 members across 60+ countries. Each AWG has its own Discourse group (e.g. @AIMLawg, @AnimalAWG, @HUMANawg, etc. til 12 of them, and growing). When I or my team need to send an announcement to the full community, we have to manually @mention all 12 groups in every post: which is error-prone, tedious, and easy to forget one.

I want a single @AWGall group that automatically reflects membership from all 12 sub-groups, so one @mention reaches everyone.

What I tried:

  1. Created an @AWGall group manually and wrote an API script to bulk-add members from all sub-groups — this works as a one-time snapshot but does not stay in sync. Every time a new member joins any of the 12 AWGs (which happens constantly), @AWGall goes stale.
  2. Searched for a native nested groups / group-of-groups feature — it doesn’t exist. The closest prior discussion is Hierarchical group membership (groups inside groups) from 2021, which confirmed no plans to implement this at the time.

What I’m asking for:

Either of these would solve the problem:

  • Option A — Nested groups: Allow a group to include other groups as members, so membership resolves transitively. When someone joins @AIMLawg, they automatically appear in @AWGall.
  • Option B — Auto-sync trigger: When a user is added to or removed from a group, fire a configurable membership sync that adds/removes them from a designated parent group.

Why this matters beyond my case:

Any community with sub-communities (departments, cohorts, teams, age brackets, regions) hits this wall. The current workaround — manually maintaining a separate flat group — breaks immediately as membership evolves. This is a general Discourse limitation, not a niche edge case.

Happy to discuss implementation tradeoffs. Is there a plugin that already handles this, or is there appetite to build it natively?

You could create an automatic group with members of all the other groups using the Discourse Dynamic Groups plugin

Nice! Will try that out. Much thanks