Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Document
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Nov 15, 2022
commit 3a39062386d469e593fbf5989a5fc63f3c11895b
34 changes: 26 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,39 @@ Accounts are deleted when they did not log in within the given number of days. T

![Screenshot of the admin settings](docs/screenshot.png)

## Accounts that never logged-in
## 🔐 Accounts that never logged-in

By default, accounts that have never logged in at all, will be spared from removal. To also take them into consideration, set the config flag accordingly:

`occ config:app:set user_retention keep_users_without_login --value=no`
```shell
occ config:app:set user_retention keep_users_without_login --value='no'
```

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
| 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:

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

You can also provide multiple reminder days as a comma separated list:
```shell
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.