nextcloud / nextcloud/groupfolders
Email notifications for Groupfolders “advanced permissions” user owners when folder quota reaches thresholds
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 343
- Forks
- 106
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 34
Description
Is your feature request related to a problem? Please describe.
In Team folders (Groupfolders) we can assign an “owner” in Manage advanced permissions.
Currently, when storage/quota for a Team folder is close to being full (or becomes full), there is no way to automatically notify the responsible person by email.
In our setup, the “owner” field is used as a responsible user for a specific Team folder. Without an email notification, the folder owner often learns about the quota issue only after users start reporting upload errors.
Describe the solution you'd like
Please add an option to send quota threshold notifications (e.g. 80% / 90% / 95% / 100%) to the owner configured in “Manage advanced permissions”, when the owner is a user (not a group).
Expected behavior:
- If the Team folder has an “owner” set to a user account, send an email notification to that user when the folder reaches configured quota thresholds.
- If the “owner” is a group, either:
- do nothing (simplest), or
- optionally notify all members of that group / group admins (only if feasible and configurable).
- Notification should include at least:
- Team folder name (and ideally its internal ID/path if useful)
- current usage and quota (e.g. “9.2 TB / 10 TB (92%)”)
- threshold that triggered the message
- link to the Team folder settings page (if available)
Nice-to-have:
- Per-folder configuration of thresholds / enable/disable.
- Avoid spamming: send once per threshold and only re-send after usage drops below threshold and reaches it again.
Describe alternatives you've considered
- External monitoring (Prometheus/Zabbix) that reads storage usage and sends emails — works, but requires extra integration and does not naturally map to the “owner” defined in Groupfolders.
- Relying on admin notifications only — in large instances, admins are not the best recipients; the folder owner is.
Additional context
- We use the “owner” in Manage advanced permissions as the primary responsibility/contact person for each Team folder.
- This feature would greatly reduce downtime and user-facing issues caused by full Team folder quotas.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the Team folder quota threshold handling, advanced-permissions owner data, and existing email notification mechanisms. Done means user owners receive non-spammy notifications with folder, usage, quota, threshold, and settings-link details, while group owners follow an agreed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authorization, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100