[Bug]: Group selection persists between user creations and cannot be cleared in "New Account" dialog (Group Admin)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
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
Steps to reproduce
- Log in as a Group Administrator.
- Open the "New account" dialog to create a new user.
- Under "Member of the following groups", select one or more groups.
- Try to remove a selected group by clicking the "X" next to it – nothing happens.
- Close the dialog and reopen it to create another user.
- The same groups are still preselected, and cannot be removed.
- Even if you complete the creation of the first user, the next user will also have these groups preselected, and they remain unremovable.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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