👤 🗑 Deletes users that did not log in in the last days.
Перейти к файлу
dependabot[bot] c2e8962075
Merge pull request #803 from nextcloud/dependabot/npm_and_yarn/cross-spawn-7.0.6
2024-11-18 22:49:31 +00:00
.github
.tx
LICENSES
appinfo
cypress
docs
l10n Fix(l10n): Update translations from Transifex 2024-11-18 01:58:42 +00:00
lib
src
templates/settings
tests
.eslintrc.js
.gitattributes
.gitignore
.l10nignore
.php-cs-fixer.dist.php
AUTHORS.md
CHANGELOG.md
Makefile
README.md
REUSE.toml
babel.config.js
composer.json
composer.lock chore(dev-deps): Bump nextcloud/ocp package 2024-10-20 03:03:50 +00:00
cypress.config.js
package-lock.json chore(deps-dev): Bump cross-spawn from 7.0.3 to 7.0.6 2024-11-18 22:45:52 +00:00
package.json Merge pull request #801 from nextcloud/dependabot/npm_and_yarn/nextcloud/dialogs-6.0.1 2024-11-09 03:17:39 +00:00
psalm.xml
stylelint.config.js
webpack.js

README.md

👤🗑 Account retention (formerly User retention)

REUSE status

Accounts are disabled or deleted when they did not log in within the given number of days. In case of deletion, this will also delete all files and other data associated with the account.

  • 🛂 Different retention possible for normal accounts and accounts of the guests app
  • Exclude accounts based on group memberships (default: admin group)
  • 🔑 Exclude accounts that never logged in (default: enabled)

Screenshot of the admin settings

🔐 Accounts that never logged in

By default, accounts that have never logged in at all, will be spared from removal.

In this case the number of days will start counting from the day on which the account has been seen for the first time by the app (first run of the background job after the account was created).

Example

Retention set to 30 days:

Account created Account logged in keep_users_without_login Cleaned up after
7th June 14th June yes/default 14th July
7th June 14th June no 14th July
7th June - yes/default -
7th June - no 7th July

📬 Reminders

It is also possible to send an email reminder to accounts (when an email is configured). To send a reminder 14 days after the last activity:

occ config:app:set user_retention reminder_days --value='14'

You can also provide multiple reminder days as a comma separated list:

occ config:app:set user_retention reminder_days --value='14,21,28'

Note: There is no validation of the reminder days against the retention days.