# Feature NEX-509 - Add a second OpenProject group in Nextcloud to avoid Nextcloud errors when user is removed from their last Group

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-509

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Nextcloud Integration 2.10.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | JankariTech Dev |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an administrator  
**I want to** be able to remove users from the "OpenProject"-group on Nextcloud even when the "OpenProject"-Group is the only group membership of the user  
**so that** I can control users access to automatic managed group folders through the "OpenProject"-group membership.

**Acceptance criteria**

  - Users can be removed from the "OpenProject"-group on Nextcloud even when the "OpenProject"-Group is the only group membership of the user.

**Technical notes**

  - Since Nextcloud doesn't allow removing users from their group, the proposed solution is to have a new group which contains the users removed from the OpenProject group.

  - The general flow for removing user from OpenProject group would be:
    
      - Add user to that new group
    
      - Remove user from OpenPorject group

  - Need to consider how this works for users coming from OIDC provider (like Keycloak)

**Permissions and visibility considerations**

  - *Adminstrators*

<br>

#### Steps for testing

1.  Set up integration with project folders enabled

2.  As NC admin, go to the `Accounts` settings and create some users: `user1`, `user2`, `user3`

3.  Add all created users to the `OpenProject` group

4.  Update the password of `OpenProject` user

5.  Login as user `OpenProject`

6.  As `OpenProject`, go to `Accounts` settings and remove `user1` from `OpenProject` group

7.  Check that `user1` is in the `OpenProjectNoAutomaticProjectFolders` group

## 

### Screencast 

[Screencast\_from\_2025-09-22\_12-10-07.webm](https://community.openproject.org/attachments/785183/Screencast_from_2025-09-22_12-10-07.webm)

<br>

<br>
