nextcloud/server

[Bug]: Display to "999+" when users limit is reached in Accounts

Open

#54,878 创建于 2025年9月4日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)PHP (34,953 star) (4,865 fork)batch import
0. Needs triage31-feedbackbuggood first issue

描述

⚠️ This issue respects the following points: ⚠️

Bug description

  • Hardcoded limit COUNT_LIMIT_FOR_SUBADMINS = 999 in /apps/settings/lib/Controller/UsersController.php:60
  • When user is Group Admin (subadmin), the system intentionally stops counting at 999 users for performance reasons
  • UsersController.php:165 calls countUsersAndDisabledUsersOfGroups() with this 999 limit

Steps to reproduce

  1. Create a Nextcloud user with "Group Admin" privileges for a group containing > 999 users (e.g. 5000 or more).
  2. Log in as the Group Admin.
  3. Go to "Accounts"

Expected behavior

Expected behavior

The number of users at "All accounts" shown in the left-hand sidebar should reflect the actual number of users the Group Admin can browse (e.g. "5241").

Actual behavior

The sidebar always shows "All accounts 999", even though the Group Admin can browse through more than 999 users without any issue.

Nextcloud Server version

31

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

Proposed fix:

  • display to "999+" when limit is reached (minimal code change)
  • make limit configurable via system config (might affect perfs if big)

贡献者指南