Skip to content

[Bug]: Group memberships are missing when a sub-admin edits a user #61090

@Ashim-Stha

Description

@Ashim-Stha

⚠️ This issue respects the following points: ⚠️

Bug description

A sub-admin editing a user who belongs to a group they administer cannot remove the user from that group because the user's current group memberships are not displayed in the edit dialog.

But user admin can see the user's group memberships and manage them as expected.

This appears to have been introduced by #59406.

Steps to reproduce

  1. Log in as admin.
  2. Create two groups (e.g. grp1 and grp2).
  3. Create a user (e.g. demo) and add the user (demo) as both a member and admin of the two groups.
  4. Log in as demo.
  5. Create another user (e.g. user1) and add them as a member of the both groups.
  6. Open the edit dialog for user1.
  7. Check the member of the following groups section.
Image

Expected behavior

The user's current group memberships are displayed, and the sub-admin can remove the user from groups they manage (also related to #61013).

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
    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions