# Bug OP-20060 -  Editing project roles for groups fails with an error, while editing roles for users or in System Administration works

Project: OpenProject
Status: needs clarification
URL: https://community.openproject.org/work_packages/OP-20060

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Project member |
| Target versions |  |
| Observed in versions |  |
| Sprint |  |
| 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

### Before filing a report

17.2.2

**Steps to reproduce**

1.  Log in as a user with permission to manage project members (e.g. Project Admin).
    
2.  Open a project.
    
3.  Navigate to **Members**.
    
4.  Add a group to the project (if not already present).
    
5.  Edit the group&#x27;s assigned role(s).
    
6.  Change one or more roles and save.
    

**Buggy behavior**

Editing the role(s) of a group in a project always results in an error when saving, regardless of whether a single role or multiple roles are changed.

This issue only affects **groups** within a project.

The following scenarios work as expected:

*   Editing roles for regular users in a project.
    
*   Editing group roles from **System Administration** when logged in as a System Administrator.
    

An error message is displayed (see attached screenshot).

**Expected behavior**

The updated project roles for the group should be saved successfully without any error, just as they are for regular users and when editing group roles in System Administration.

<br>

**Screenshots and other files**

*   <img class="image_resized op-uc-image op-uc-image_inline" style="width:784px;" src="/api/v3/attachments/922854/content">
    

**Environment information**

<br>

*   **OpenProject version:** 17.2.2
    
*   **Browser:** Chrome _(or specify the browser you are using)_
    
*   **Operating System:** Windows _(or your actual OS)_
    
*   **Language:** Specify your browser language and OpenProject user language (e.g. English (en-US))
    

**Additional information**

The issue appears to be specific to updating **group memberships within a project**, as the same operation succeeds for individual users and for groups managed through **System Administration**. This suggests the problem may be isolated to the project-level group membership update functionality.
