# Hierarchical group membership (groups inside groups)

**URL:** https://meta.discourse.org/t/hierarchical-group-membership-groups-inside-groups/182263
**Category:** Support
**Created:** [March 5, 2021, 10:59pm UTC](https://meta.discourse.org/t/hierarchical-group-membership-groups-inside-groups/182263 "2021-03-05T22:59:34Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [March 21, 2023, 7:00am UTC](https://meta.discourse.org/t/hierarchical-group-membership-groups-inside-groups/182263/16 "2023-03-21T07:00:08Z")

</div>

@angus I’m wondering whether the [`GroupAssociatedGroup`](https://github.com/discourse/discourse/blob/main/app/models/group_associated_group.rb) already implements this thread’s intention.

[https://github.com/discourse/discourse/commit/df3886d6e5fca3e1ac2bb961997fcc52bfeff8c1](https://github.com/discourse/discourse/commit/df3886d6e5fca3e1ac2bb961997fcc52bfeff8c1)

> [@Managing group membership via authentication](https://meta.discourse.org/t/managing-group-membership-via-authentication/175950):
>
> @david Continuing the discussion from [https://github.com/discourse/discourse-openid-connect/pull/7#issuecomment-758082333](https://github.com/discourse/discourse-openid-connect/pull/7#issuecomment-758082333) As you probably can guess, I’m also keen to see a stable solution to this problem, which is not specific to the openid-connect plugin. Let’s see if we can figure out a way forward To pick up on the point you’ve raised. How do you decide which groups to add and remove the user from? And how does that affect manually adding/removing users from groups in Discourse itself? …

---

_[View the full topic](https://meta.discourse.org/t/hierarchical-group-membership-groups-inside-groups/182263)._
