nextcloud / nextcloud/user_usage_report

Add group memberships column

Open
#17 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
45
Forks
12
Avg merge
13h 25m
Merged PRs (30d)
19

Description

thanks for your work.
how could one add groups of a user to the output? is this even possible since users can have multiple groups?

i started by adding this to AllUsers.php

$query = $this->connection->getQueryBuilder();
$query->select('gid')
    ->from('group_user');
$this->queries['groups'] = $query;

this is not finished at all..

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 AllUsers.php and inspect how the existing query and report output are assembled, including the group_user lookup shown in the issue. Determine how multiple groups should appear in the output, then verify that users with multiple memberships are represented correctly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.