Bug
The group picker dropdowns in admin settings (link visibility filter and group
assignment) only show up to 20 groups, regardless of how many groups exist in
the Nextcloud instance. Instances with more than 20 groups cannot access all
groups through the UI.
Root cause
Two issues found:
1 (Potential). lib/Controller/LinkController.php — getGroups() method
$this->groupManager->search('') is called without an explicit limit parameter.
Nextcloud's IGroupManager::search() defaults to $limit = 15, so the admin
groups endpoint returns at most 15 groups.
Fix: $this->groupManager->search('', -1)
2 (Proven). Compiled frontend — OCS groups call
The group picker component queries /ocs/v2.php/cloud/groups/details with
limit:20 hardcoded and no pagination or infinite scroll. This caps the
dropdown at 20 groups even when the backend returns more.
Fix: increase limit or implement search-as-you-type with a reasonable cap
(e.g. 500).
Steps to reproduce
- Create more than 20 groups in Nextcloud
- Open DashLink admin settings
- Open any group picker dropdown — only the first 20 groups appear alphabetically
Environment
- Nextcloud: 33.0.2.2
- DashLink: 1.2.1
Bug
The group picker dropdowns in admin settings (link visibility filter and group
assignment) only show up to 20 groups, regardless of how many groups exist in
the Nextcloud instance. Instances with more than 20 groups cannot access all
groups through the UI.
Root cause
Two issues found:
1 (Potential).
lib/Controller/LinkController.php—getGroups()method$this->groupManager->search('')is called without an explicit limit parameter.Nextcloud's
IGroupManager::search()defaults to$limit = 15, so the admingroups endpoint returns at most 15 groups.
Fix:
$this->groupManager->search('', -1)2 (Proven). Compiled frontend — OCS groups call
The group picker component queries
/ocs/v2.php/cloud/groups/detailswithlimit:20hardcoded and no pagination or infinite scroll. This caps thedropdown at 20 groups even when the backend returns more.
Fix: increase limit or implement search-as-you-type with a reasonable cap
(e.g. 500).
Steps to reproduce
Environment