Skip to content

[Bug]: Nextcloud user gets groups: Insufficient permissions to change groups when removing a user from a group #61013

@Ashim-Stha

Description

@Ashim-Stha

⚠️ This issue respects the following points: ⚠️

Bug description

A Nextcloud user who is an admin of a group receives the error:

groups: Insufficient permissions to change groups

when attempting to remove a user from a group they administer.

{
    "ocs": {
        "meta": {
            "status": "failure",
            "statuscode": 422,
            "message": ""
        },
        "data": {
            "errors": {
                "groups": "Insufficient permissions to change groups"
            }
        }
    }
}

Steps to reproduce

  1. Log in as admin.
  2. Create two groups (e.g. naruto and boruto).
  3. Create a user (e.g. naruto) and add the user (naruto) as both member and admin of the two groups.
  4. Log in as the created user (naruto).
  5. Create another user (e.g. hinata) and add them as a member of both groups.
  6. Attempt to remove hinata from either group.

Expected behavior

The group admin should be able to remove the user from the group.

Nextcloud Server version

34

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap34-feedbackbug

    Type

    No fields configured for Bug.

    Projects

    Status
    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions