Skip to content

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

@camilasan

Description

@camilasan

⚠️ 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap31-feedbackbuggood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions