nextcloud / nextcloud/server

[Bug]: Group selection persists between user creations and cannot be cleared in "New Account" dialog (Group Admin)

Open
#53,878 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 30-feedback bug
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

Hi Nextcloud team,
I’ve encountered a reproducible issue when creating new users as a Group Administrator that affects the group assignment functionality. Here's what happens:

Actual behavior

Selected groups cannot be removed once added.
Group selection persists between different "New account" dialog sessions.
Only logging out resets the form properly.

Thanks in advance for looking into it! Let me know if I can provide further info.

Best Regards

Image
Steps to reproduce
  1. Log in as a Group Administrator.
  2. Open the "New account" dialog to create a new user.
  3. Under "Member of the following groups", select one or more groups.
  4. Try to remove a selected group by clicking the "X" next to it – nothing happens.
  5. Close the dialog and reopen it to create another user.
  6. The same groups are still preselected, and cannot be removed.
  7. Even if you complete the creation of the first user, the next user will also have these groups preselected, and they remain unremovable.
  8. The only way to reset the state is to log out and log back in.
Expected behavior
  • Selected groups should be removable by clicking the "X".
    
  • When closing the "New account" dialog, the form should be reset to default state.
    
  • Group selection from a previous account should not persist into the next user creation.
    
Nextcloud Server version

30

Operating system

None

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reproducing the issue in the Group Administrator's New account dialog, then trace the group-selection state across closing and reopening the dialog. Done means selected groups can be removed and a newly opened dialog starts with no groups selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.