Audit log

What the audit log records, who can see it, how long it's kept, and getting it as CSV or through the API.

What's recorded

One row for each sign-in and change to the workspace: when, who, what and to whom, and the IP address and browser it came from. Changes made by Araval support show as Araval support, what your directory does through SCIM as SCIM (token name), and what Mayfly does itself, such as a domain check passing, as System.

  • Sign-in: signed in, sign-in failed, signed out, sessions ended.
  • Passwords: password changed, password reset asked for, password reset used.
  • Team: invite sent, invite revoked, member joined, role changed, member removed, reset link made, member deactivated, member reactivated, member details changed, member email changed.
  • Single sign-on: sso set up, sso changed, sso removed, sso domain added, sso domain removed, require sso turned on, require sso turned off.
  • API keys: api key created, api key revoked.
  • Domains: domain added, domain verified, domain stopped receiving, domain removed, spam filter changed, new private test domain, test domain spam filter changed.
  • Webhooks: webhook created, webhook changed, webhook deleted, webhook secret rotated.
  • Mail: mailbox cleared.
  • Billing: plan changed, payment recorded.
  • SCIM provisioning: scim token created, scim token rotated, scim token revoked.

A failed sign-in is recorded only for a member's own email, in their workspace. The log never holds a password, a token, an API key, a webhook secret, a link or a code, nor any mail.

Who sees it

Admins see it on Settings → Audit log, on the 100,000 mail and 500,000 mail plans, and so do API keys made to read it. Members don't. Every workspace's events are recorded whatever its plan, so moving to one of those plans shows the history too.

How long it's kept

Each row is kept for 365 days, then deleted. Nobody can change or delete one sooner, Araval included. A deleted workspace's log goes with it.

CSV and the API

  • Filter by event, actor and dates, then choose Download CSV for every row that matches, not just the page shown.
  • From a script, GET /api/v1/audit-events takes the same filters, a page at a time by cursor, and GET /api/v1/audit-events/export gives the CSV.
  • The API key must be made with Can read the audit log ticked, on Settings → API keys. It can't be turned on later, so make a new key for it. Any other key gets 404.
NextSCIM provisioning