See and audit every share on your Nextcloud, in the browser and not the CLI.
Share Audit Dashboard gives administrators a single, visual overview of every share on the instance (user, group, public link, email, federated, Talk), flags the risky ones, and lets you fix them in bulk. Regular users get their own personal view to audit and clean up the files they share.
Nextcloud can list shares on the command line (occ sharing:list), but there is
no visual, filterable, actionable dashboard, and no easy way to answer
“who can reach this data?”, “which of our public links have no password?”, or
“are we still sharing files owned by people who left?”. Share Audit Dashboard
fills that gap with an admin-wide audit surface and a per-user self-service view.
- Dashboard: totals per share type, a 12‑month creation trend, an internal vs external exposure section with a 0–100 exposure score, and top sharers. Attention banners flag insecure links and orphaned shares. Click a stat card or exposure category to jump straight into the filtered list.
- All shares: a filterable, sortable, server‑side paginated table of every share on the instance. Filters live in the column headers (type, path or share name, owner, recipient, password, expiration). Export the filtered view to CSV. A share made into a Talk conversation or a Deck card shows that conversation's or card's name and how many people it reaches, not its internal key, and flags a conversation anyone can join.
- Security alerts: public links with no password, no expiration, or exposing a sensitive file type. Fix them individually or in bulk: add a generated password, set an expiration, or revoke. The alert rules are configurable.
- Lookup & Orphans: search a user, group or email and see every share made directly to them, with revoke all direct shares (built for audits and offboarding suppliers). For a user, the groups through which they also reach shared files are listed next to it, each one a click away: those group shares are not revoked with the direct ones. Plus shares still owned by disabled or deleted accounts, which you can bulk revoke or transfer to a colleague who takes the work over (a classic offboarding risk Nextcloud does not surface). For a disabled account you can also move its files to the colleague, just the ones the selected shares point to or the whole account: the shares follow the files (a public link keeps its URL), it runs in the background and each move is tracked in a File moves list.
- Deleted shares: a recycle bin for revoked shares. Unsharing in Nextcloud
is normally immediate and irreversible; here a removed share is kept for a
retention window (30 days by default, configurable) and can be restored or
purged, individually or in bulk. It catches every removal on the instance, not
just the ones made through this app: unsharing from the Files app, another
app,
occor the sharing API lands in the bin just the same. A daily background job clears out anything past its retention date.
An admin can name one or more groups, in Settings → Auditor groups, whose members get a read-only copy of the whole instance-wide dashboard above (Dashboard, All shares, Security alerts, Lookup & Orphans and Deleted shares) through their own page (a "Share Audit Dashboard" icon in the top app menu), without becoming administrators. They can see every share, its owner, initiator and recipient, but can never set a password or expiration, revoke, restore or transfer a share, or reach the settings; every one of those actions is refused by the server itself, not just hidden in the interface, and public-link tokens are never shown to them.
- Review the files and folders you share, and fix your own risky public links (add password / set expiration / revoke), scoped strictly to your own shares.
- A dashboard widget highlights your links that need attention right on the Nextcloud dashboard.
- Admins can turn this personal view (and its widget) off instance-wide from Settings → Administration → Share Audit → Settings, for instances where sharing audits should stay an admin-only concern.
Click the badge above (or this link) to open a full Nextcloud instance running entirely in your browser (via WebAssembly). It boots with Share Audit Dashboard installed, the admin already logged in, and a handful of shares already seeded (including a public link without a password or expiration, one exposing a spreadsheet, a group share, and a share owned by a disabled account), so the Dashboard, Security alerts and Lookup & Orphans views all have something to show the moment it opens.
No local setup or Docker required. The instance is provisioned from
blueprint.json at the repository root using the
installApp
step, which installs the release tarball straight from this repository's
GitHub releases.
- Go to Apps in your Nextcloud
- Search for "Share Audit Dashboard"
- Click Install
cd /path/to/nextcloud/apps
git clone https://github.com/kreotropic/share_audit.git share_audit_dashboard
php occ app:enable share_audit_dashboardNote: compiled JavaScript is included in the repository, so
npm install/npm run buildare only needed if you modify the frontend source.
- Admins: Settings → Administration → Share Audit: Dashboard, All shares, Security alerts, Lookup & Orphans, Deleted shares, and Settings.
- Users: Settings → Personal → My shares audit.
Everything is available in the browser; there are no OCC commands to learn.
In Security alerts (admin) and My shares audit (user) you can act on many links at once: generate a password, set an expiration, or revoke. Generated passwords are shown once, so copy them immediately: they are not stored or shown again. Revoking is recoverable: the share goes to Deleted shares for the retention window rather than disappearing outright.
-
It audits Nextcloud shares, not raw filesystem permissions. The dashboard reads the shares Nextcloud records (the
oc_sharetable): user, group, public link, email, federated and Talk shares. It does not report on external-storage native ACLs or OS-level permissions. -
“Select all” spans the current page. With server-side pagination, selecting all only covers the loaded page. Increase Per page, or in Security alerts pick All, to act across the whole set at once.
-
Generated passwords are shown once. When a bulk or single "add password" action creates a password, copy it right away, as it is not shown again.
-
Restoring a share usually, but not always, keeps its public link URL. The original token and password are put back as they were, so an already-circulated link keeps working. The exception is if that token was taken by a link created while this one sat in the bin: the share is still restored, but with a fresh token and no password, and the result says so rather than failing silently.
-
Access through groups is shown per group, not per file. A user's lookup lists the shares made to them and, separately, how many shares each of their groups has received. It does not expand folders, nested groups (e.g. from LDAP), Team Folders or circles into a full list of reachable files.
-
Entries kept in the bin before version 0.8.0 do not know a link's download restrictions. Such a link or mail share is restored with hide download on, on the safe side, and the result says so; the owner can switch it back off.
- PHP's JIT can crash Apache/PHP workers when an app is enabled or updated.
A regression in PHP's JIT compiler makes workers die with
SIGSEGV(or spin at 100% CPU) while they compile newly loaded code, so it shows up right after you enable or update an app. It is not specific to this app (Nextcloud users report it with other apps too) nor to ARM: it has been reproduced on x86_64 and aarch64, under PHP-FPM and under Apache. It was first reported on PHP 8.5.5 and was still reproducible on 8.5.10; it is tracked upstream in php/php-src#22558 and #22084. Nextcloud's official Docker image turns the tracing JIT on (opcache.jit=1255), so it is the default there. If workers crash-loop right after you enable or update an app, switch the JIT off (opcache.jit=0andopcache.jit_buffer_size=0in aconf.doverride) and restart. That is the only workaround reported to be reliable; lowering the JIT level has been reported to still crash. See issue #3.
The app interface is available in:
- English (default)
- Portuguese (Portugal) / Português (Portugal)
- German / Deutsch
- Spanish / Español
- French / Français
Contributions for additional languages are welcome: add a l10n/<locale>.json
and regenerate the matching l10n/<locale>.js with python3 build/l10n.py.
- Nextcloud 31–35
- PHP 8.1 or later (tested up to PHP 8.5, which Nextcloud 34 and 35 ship with)
- MySQL/MariaDB or PostgreSQL. Both are tested by running the same fixture on each and diffing the app's output, so the two return identical results
AGPL‑3.0‑or‑later © Ricardo Ferreira.
The frontend is Vue 3 + @nextcloud/vue; the backend reads oc_share directly
via a mapper and exposes an admin‑only (and a per‑user) JSON API. See the code
under lib/ and src/.
composer install
vendor/bin/phpunitThe suite must pass on both supported databases. Sorting is where they part
company: MySQL places NULL before every value and PostgreSQL after it, so any
new ORDER BY over a nullable column needs an explicit "nulls last" key, and any
ORDER BY paired with a LIMIT needs a tiebreaker, or the two engines return
different rows rather than merely a different order. See
ShareMapper::NULLABLE_SORT_COLUMNS.
For an end-to-end check there is a disposable instance per engine and a deterministic share fixture to give both. See build/README.md.
Compiled JavaScript is committed to the repository, so a build is only needed when
you change the Vue/JS sources under src/:
npm install
npm run build # production build
npm run watch # rebuild on changeAfter editing a translation, regenerate the frontend l10n/*.js bundles from the
l10n/*.json sources (and check for missing/orphaned strings):
python3 build/l10n.py # regenerate all l10n/<lang>.js
python3 build/l10n.py --check # CI: fail if strings are missingPull requests welcome! Please open an issue first to discuss significant changes.
| All shares (header filters, CSV export) | Security alerts (bulk fixes) |
|---|---|
![]() |
![]() |
| Exposure | Access lookup (who can reach this?) |
|---|---|
![]() |
![]() |
| Personal view (My shares audit) | Dashboard widget |
|---|---|
![]() |
![]() |
The snapshots above showcase the admin all-shares table, the security-alerts bulk fixes, the exposure overview, the access-lookup audit, the per-user personal view, and the dashboard widget. These images are picked up by the App Store crawler to showcase the app.
Planned features (owner notifications, an email digest and compliance reports, and more) are documented in ROADMAP.md. The recycle bin, accepting an alert as an exception and transferring orphan shares, once the top items there, have shipped. See Deleted shares, Security alerts and Lookup & Orphans above.
See CHANGELOG.md for the full version history.
- Issues: GitHub Issues
- Forum: Nextcloud Community
Ricardo Ferreira






