Retention periods
How long Bugsoft Portal keeps each kind of data, where you set it, and what is never removed automatically.
Every night, Bugsoft Portal cleans up what is older than its retention period (the scheduled tasks
insights.retention, directory.inactive.prune and a few smaller ones). What was removed is recorded
in the audit log.
To see beforehand what would be removed: php bin/console retention:prune --dry-run.
The periods
| Data | Default | Where to set it | Limits |
|---|---|---|---|
| Single tile clicks (who opened what) | 180 days | Settings › Statistics and retention › stats.click_retention_days | 30 to 3650 days; after that only daily totals without names remain |
| Daily statistics (active days per person, parts used, who saw a message) | 730 days | stats.daily_retention_days | 90 to 3650 days |
| Sign-in history (with IP address and browser) | 365 days | stats.login_retention_days | 30 to 3650 days |
Application log files (storage/logs/app-*.log) | 30 days | stats.app_log_retention_days | At least 7 days. audit-anchor.log is always kept |
| Audit log | Forever (0) | audit.retention_days | 0 = forever; production:check then warns |
| Accounts that have not signed in for a long time | Off (0) | directory.inactive_delete_days | At least 30 days, counted from the last sign-in. Never: blocked accounts (the block would disappear), people who never signed in (such as someone you only gave a role or audience), emergency accounts, demo accounts, whoever is signed in now, or the last super administrator |
| Appointments and tasks | 365 days after the day | Calendar › Settings and rules (agenda.keep_days) | 30 to 3650 days; repeating appointments stay |
| Photos with ticked-off tasks | 90 days | Calendar › Settings and rules (agenda.photo_keep_days) | 7 to 730 days; the note stays with the task |
| Questions the assistant did not understand (without a name) | 90 days | Fixed; switch off with Settings › Assistant › Keep track of questions not understood | — |
| Notifications per person | 30 days | Fixed | — |
| Sessions | 120 minutes without activity, at most 12 hours | Settings › Sign-in and security › Signing out automatically | 5 to 1440 minutes; 1 to 72 hours |
| Tickets for one-click sign-in | Valid for 60 seconds, removed an hour later | vault.fill_ticket_ttl (how long it is valid) | 15 to 300 seconds |
| Backups (SQLite, by Bugsoft Portal) | The last 14 | php bin/console backup:run --keep=; Docker: BACKUP_KEEP_DAYS | — |
What is never removed automatically
- Blocked accounts and people who never signed in: Bugsoft Portal never cleans these up by itself. Remove them in Identities when they are no longer needed. A blocked account you delete can simply sign in again with Microsoft afterwards: so also block the person in Microsoft Entra ID.
- Accounts, with their own passwords, tiles and calendar, as long as
directory.inactive_delete_daysis 0. Then remove people who leave yourself, in Identities (filter "Not signed in since", up to 200 at a time), or switch the period on. See Identities: people, sessions and View as. - The audit log, as long as
audit.retention_daysis 0. - Own passwords and notes: these stay until the person deletes them, or the account is removed.
- Read and confirmed with messages: as long as the message exists.
Which periods should you choose? Your own organisation decides that, together with the data protection officer (DPO). The defaults are a start, not advice. When you set a new period, everything older disappears at the next nightly run. You cannot undo that (except with a backup).
Stuck? See Questions and problems or contact Bugsoft at ugurs156@gmail.com.