expiry: add option to delete after n days

Much like activities, you can have an expired account disabled, then
deleted after n days (unless the admin intervenes and re-enables the
account).

For #341.
This commit is contained in:
Harvey Tindall
2024-08-05 13:56:34 +01:00
parent 3c3297c8e7
commit 86c37fb423
3 changed files with 83 additions and 66 deletions
+9
View File
@@ -1797,6 +1797,15 @@
"value": "disable_user",
"description": "Whether to delete or disable users on expiry."
},
"delete_expired_after_days": {
"name": "Delete expired accounts after (days)",
"required": false,
"requires_restart": false,
"type": "number",
"value": 0,
"depends_true": "behaviour",
"description": "When set, user accounts will be deleted this many days after expiring (if \"Behaviour\" is \"Disable user\"). Set to 0 to disable."
},
"send_email": {
"name": "Send email",
"required": false,