No description
  • PHP 97.4%
  • Makefile 2.6%
Find a file
github-actions[bot] d12c1730af
Merge pull request #585 from nextcloud/automated/noid/master-update-nextcloud-ocp
[master] Update nextcloud/ocp dependency
2026-04-30 20:54:12 +00:00
.github ci(actions): Update workflows 2026-04-30 22:29:24 +02:00
appinfo
docs
lib fix: Ensure userId is string 2026-02-24 15:19:31 +01:00
LICENSES
tests
vendor-bin ci(deps-dev): Bump vimeo/psalm in /vendor-bin/psalm 2026-03-21 02:34:48 +00:00
.git-blame-ignore-revs
.gitattributes
.gitignore
.php-cs-fixer.dist.php
AUTHORS.md
CHANGELOG.md
composer.json build(deps-dev): Bump bamarni/composer-bin-plugin from 1.8.3 to 1.9.0 2026-01-31 02:03:53 +00:00
composer.lock chore(dev-deps): Bump nextcloud/ocp package 2026-04-30 20:53:22 +00:00
COPYING
Makefile
psalm.xml
README.md
REUSE.toml

User usage report

REUSE status

To generate the report for a user, run the following command:

$ sudo -u www-data ./occ usage-report:generate admin
"admin","2017-09-18T09:00:01+00:00",5368709120,786432000,12,1,1,2

Leaving out the user argument will generate a report for all users on the system:

$ sudo -u www-data ./occ usage-report:generate --display-name
"admin","Nextcloud Admin","2017-09-18T09:00:01+00:00",5368709120,786432000,12,1,1,2
"test1","Test User 1","2017-09-18T09:00:01+00:00",-2,954368,6,0,2,10
"test2","Second Test user","2017-09-18T09:00:01+00:00",-2,164,4,0,0,0
"test3","Test User Three","2017-09-18T09:00:01+00:00",-2,164,4,0,0,0
"test5","Fifth Tester","2017-09-18T09:00:01+00:00",-2,164,4,0,0,0

The CSV data is the following:

  • User identifier
  • User display name (when --display-name is given)
  • Current date and time (default in ISO 8601 format, but any format can be specified)
  • Last login date and time (default in ISO 8601 format, but any format can be specified) (when --last-login is given)
  • Assigned home storage size in bytes (-3 is unlimited, -2 is unknown/not set)
  • Disk space consumed by home storage in bytes (-2 is unknown)
  • Number of files in home storage
  • Number of shares created
  • Number of files created (new files only)
  • Number of files read (download/view)

To include the header of the fields in the CSV use the --verbose option:

$ sudo -u www-data ./occ usage-report:generate --verbose admin
"user-id","date as 'c'","assigned quota (5 GB)","used quota (500 MB)",number of files,number of shares,number of uploads,number of downloads
"admin","2017-09-18T09:00:01+00:00",5368709120,786432000,12,1,1,2