# Bug OP-20020 - Groups: Subgroup does not inherit parent group's project role assignments despite correctly set Parent group

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-20020

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.9.0 |
| Observed in versions | 17.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

Preconditions: Administrator account with permission to manage groups and project members. Enterprise token active (nested/parent groups is a documented OpenProject feature).

1.  Create Group &quot;Parent Group&quot;. Assign it the &quot;Reader&quot; role on several existing projects (via `Administration → Users and permissions → Groups → Parent Group → Projects`).
    
2.  Create Group &quot;Subgroup B&quot; with Parent group = &quot;Parent Group&quot;. Confirm: on the Groups overview, &quot;Subgroup B&quot; correctly shows all of &quot;Parent Group&quot;&#x27;s project/role assignments (inherited).
    
3.  Some time later, create a second Group &quot;Subgroup A&quot;, also with Parent group = &quot;Parent Group&quot; (verified directly on Subgroup A&#x27;s own edit page — field is correctly set).
    
4.  Compare both subgroups on the Groups overview page.
    

### What is the buggy behavior?

*   &quot;Subgroup A&quot; shows **no inherited projects/roles at all**, even though its Parent group field is correctly set to &quot;Parent Group&quot; and &quot;Parent Group&quot; has multiple active project role assignments.
    
*   &quot;Subgroup B&quot; (created earlier, same parent) correctly shows all of &quot;Parent Group&quot;&#x27;s project/roles as inherited entries, exactly as documented.
    
*   Attempted to force a refresh: changed &quot;Parent Group&quot;&#x27;s role on one project (removed and re-added it). This updated the inherited entry for &quot;Subgroup B&quot; as expected, but &quot;Subgroup A&quot; remained completely empty.
    
*   Re-saving &quot;Subgroup A&quot; itself (opening the edit form and saving without any changes) had no effect either.
    
*   Most notably: on &quot;Subgroup A&quot;, it is possible to **manually add and remove** a project role that duplicates one already held (via inheritance) by &quot;Parent Group&quot; — this works exactly like a normal, independent group membership. Per OpenProject&#x27;s documented behavior, an inherited/cascaded group membership should not be freely editable at the project level, only at its source. This suggests &quot;Subgroup A&quot; is not actually wired into the inheritance mechanism at all, despite having a correctly configured parent.
    

### What is the expected behavior?

*   &quot;Subgroup A&quot; should show the same inherited projects/roles as &quot;Subgroup B&quot;, since both have the identical Parent group configured.
    
*   A group&#x27;s inherited (cascaded) project membership should not be independently addable/removable at the project level — same as the existing, correctly-working behavior for &quot;Subgroup B&quot;.
    

### Important note

_Possibly related (not identical):_ [_https://community.openproject.org/projects/OP/work\_packages/OP-9018/activity_](https://community.openproject.org/projects/OP/work_packages/OP-9018/activity) _— different trigger, but also points to inherited group-role memberships being handled as materialized/cached records rather than computed live, which may be relevant to root-causing this._

### **Logs**

_Are there errors in the browser console? No_

### Screenshots and other files

_If you have screenshots of the application&#x27;s bug behavior or other relevant files, please drag them into this place or attach them using the &quot;Files&quot; section._

### Environment information

**OpenProject installation type**

*   On-Prem
    

**OpenProject version**

_v17.6.0_

**Browser**

*   [ ] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari

*   &nbsp;\[x\]  Edge
    

*   [ ] Other (please specify)

**Operating System**

*   [ ] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_Please specify the browser language and the language of the OpenProject user for which the bug occurred._
