Retention periods

  • For administrators
  • Bugsoft Portal 4.12.14

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

DataDefaultWhere to set itLimits
Single tile clicks (who opened what)180 daysSettings › Statistics and retention › stats.click_retention_days30 to 3650 days; after that only daily totals without names remain
Daily statistics (active days per person, parts used, who saw a message)730 daysstats.daily_retention_days90 to 3650 days
Sign-in history (with IP address and browser)365 daysstats.login_retention_days30 to 3650 days
Application log files (storage/logs/app-*.log)30 daysstats.app_log_retention_daysAt least 7 days. audit-anchor.log is always kept
Audit logForever (0)audit.retention_days0 = forever; production:check then warns
Accounts that have not signed in for a long timeOff (0)directory.inactive_delete_daysAt 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 tasks365 days after the dayCalendar › Settings and rules (agenda.keep_days)30 to 3650 days; repeating appointments stay
Photos with ticked-off tasks90 daysCalendar › 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 daysFixed; switch off with Settings › Assistant › Keep track of questions not understood—
Notifications per person30 daysFixed—
Sessions120 minutes without activity, at most 12 hoursSettings › Sign-in and security › Signing out automatically5 to 1440 minutes; 1 to 72 hours
Tickets for one-click sign-inValid for 60 seconds, removed an hour latervault.fill_ticket_ttl (how long it is valid)15 to 300 seconds
Backups (SQLite, by Bugsoft Portal)The last 14php 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_days is 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_days is 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.