# Bug OP-9948 - Multiple group memberships in project result in insufficient roles applied

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.1.0 |
| Observed in versions |  |
| Sprint | 12.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### **Environment**:

Your OpenProject Version: 12.0.7

### **Steps to reproduce:**

1.  Have a user Alice
2.  Assign that user to two groups A and B
3.  Add the two groups with different roles (let's say role\_A, role\_B) to a project
    1.  Group A -\> role\_A
    2.  Group B -\> role\_B
4.  Edit group A membership and add another role (role\_C) so it has two roles (role\_A + role\_B)
5.  Observe the member list

### **Actual Behavior**

Alice is showing only the roles of the Group A (role\_A, role\_C) but lost role\_B and the inherited membership from Group B

If you remove "Group A" from the project, Alice is also removed despite being member of Group B

### **Expected Behavior**

The user gets assigned all roles, so that removing one group leaves the other role. The membership of both groups is tracked correctly.
