Auditing is already on
Mailbox audit logging is on by default in all organizations. Check it with Get-OrganizationConfig | FL AuditDisabled: False means auditing is on. The organization setting overrides the mailbox-level AuditEnabled property, which always shows True, and a per-mailbox AuditEnabled $false is ignored while on-by-default is active. A runbook that says "run Set-Mailbox -AuditEnabled $true on each new mailbox" is outdated.
On-by-default covers user, shared and Microsoft 365 Group mailboxes. It does not cover resource mailboxes or public folder mailboxes.
Sign-in types and default actions
- Owner: the mailbox's own user.
- Delegate: holders of SendAs, SendOnBehalf or FullAccess, including an admin with FullAccess.
- Admin: eDiscovery searches, MAPI Editor, or impersonation.
All three log actions such as HardDelete, MailItemsAccessed, SoftDelete, Update and UpdateInboxRules by default. MailboxLogin, Copy, FolderBind, Move and SearchQueryInitiated can be added.
Customizing, and its side effect
Add an action with Set-Mailbox -AuditOwner @{Add="MailboxLogin"} (or -AuditAdmin, -AuditDelegate). Customizing a sign-in type removes it from DefaultAuditSet, so Microsoft stops adding new default actions for it. Revert with Set-Mailbox -DefaultAuditSet Admin,Delegate,Owner. Group mailbox actions can't be customized.
Bypass, switch-off and retention
- One noisy account: Set-MailboxAuditBypassAssociation -Identity svc-scan -AuditByPassEnabled $true stops all its owner, delegate and admin actions being logged. Check with Get-MailboxAuditBypassAssociation.
- Everyone: Set-OrganizationConfig -AuditDisabled $true turns auditing off org-wide and keeps existing records.
- Retention: AuditLogAgeLimit is no longer applicable. Audit retention is managed through Purview audit log retention policies.
Mailbox audit entries are stored in Recoverable Items\Audits. When the Recoverable Items quota is full, audit entries can't be written, so a held mailbox that stops logging may simply be full.
Search the results with the audit search tool in the Purview portal or with Search-UnifiedAuditLog.