nextcloud / nextcloud/server

User group showing wrong number of users in it

Open
#29,422 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 25-feedback bug feature: users and groups needs review
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

If I go to Usermanagement and look at groups, eacht group has a number next to the group name. that number should indicate the users in that group. unfortunately that number is wrong. If i count the users in that group manually I get to 14. the number shows 19.

As I do only have 14 user accounts on that instance in total, that number 19 must be wrong. - I do have one deactivated user, but this still does not explain the delta of 5.

Assumption: deleted users are somehow still calculated as group member.

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

Start in the Usermanagement groups view and reproduce the mismatch by comparing the displayed count with a manual count of users, including the deactivated and deleted-user cases described here. Trace how the group total is calculated and confirm that it counts only users actually present in the group; done means the displayed number matches the real membership count.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.