When it is written
Microsoft lists UpdateInboxRules ("Updated inbox rules from Outlook client") among the audited Exchange mailbox activities: the mailbox owner or another user with access to the mailbox created, changed or removed an inbox rule with the Outlook client. Rules made in Outlook on the web or with Exchange Online PowerShell are recorded as New-InboxRule, Set-InboxRule and Remove-InboxRule instead, so both kinds of record are needed to see every rule change. Mailbox auditing logs UpdateInboxRules by default for owners, delegates and admins.
The record uses the Exchange Mailbox schema: who acted (UserId, LogonType), the mailbox (MailboxOwnerUPN, MailboxGuid) and the client (ClientIPAddress, ClientProcessName, ClientVersion, SessionId). The schema also has an OperationProperties collection of operation-specific name and value pairs, but Microsoft does not document which pairs an UpdateInboxRules record carries. Whether a rule was added, changed or removed, and what it does, is therefore best read from the mailbox's rules. Exchange Web Services has an operation of the same name for creating, changing and deleting rules; Microsoft does not say whether its use is recorded under this action.
How to turn it on
Microsoft 365 unified audit log (Exchange) records UpdateInboxRules calls to Microsoft 365 unified audit log (Exchange) without any setup. Vendor documentation
Microsoft Purview Audit (Standard) is on by default for most Microsoft 365 organizations: every cmdlet run in the Exchange admin center or in Exchange Online PowerShell is recorded, except cmdlets whose verb is Get-, Search- or Test- and some service maintenance cmdlets that Microsoft does not log. Microsoft lists two exceptions where auditing is not on by default: tenants with Business Basic, Business Standard or Business Premium licences, and unmanaged tenants on enterprise trials. Check UnifiedAuditLogIngestionEnabled in Exchange Online PowerShell (in Security & Compliance PowerShell the property always reads False).
- Mailbox actions (inbox rules created from Outlook, folder permission changes, mail access) also need mailbox auditing, which is on by default for user, shared and Microsoft 365 Group mailboxes (
AuditDisabledisFalse). An account set to bypass mailbox auditing (Set-MailboxAuditBypassAssociation) leaves no mailbox audit records, and a mailbox whose audited actions were customised does not get new default actions. For users without an E5 licence, Microsoft notes that mailbox audit records are returned by the audit search,Search-UnifiedAuditLogand the Management Activity API only after mailbox auditing is enabled on the mailbox by hand (Set-Mailbox -AuditEnabled $true). Microsoft states this limit for mailbox audit events only, not for cmdlet records. - Retention follows the licence of the user who performed the activity: 180 days with Audit (Standard) (90 days for records created before 17 October 2023); with Audit (Premium) (E5 or an E5 Compliance or eDiscovery and Audit add-on) Exchange records are kept one year by default, and up to 10 years with a separate add-on licence and a retention policy.
- Collection: the Office 365 Management Activity API publishes Exchange records in the
Audit.Exchangecontent type. A subscription has to be started first (the first content can take up to 12 hours), each content blob can be downloaded for 7 days, and records do not arrive in order. Microsoft Sentinel's Microsoft 365 data connector with Exchange selected writes them to theOfficeActivitytable, which is a free data source. - Delay: Microsoft guarantees no delivery time. Exchange records are typically available 60 to 90 minutes after the activity; Microsoft notes that an Exchange admin record can take up to 30 minutes to appear in an audit search.
- Turning auditing off (
Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false) also stops the Management Activity API and Sentinel collection; the change itself is recorded as aSet-AdminAuditLogConfigrecord.
Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabledGet-OrganizationConfig | Format-List AuditDisabledGet-Mailbox -Identity <MailboxIdentity> | Format-List AuditEnabled,DefaultAuditSetGet-MailboxAuditBypassAssociation -Identity <MailboxIdentity> | Format-List AuditByPassEnabledSearch-UnifiedAuditLog -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) -Operations UpdateInboxRules -ResultSize 5 | Select-Object -ExpandProperty AuditDataNeeds mailbox auditing, which is on by default for user and shared mailboxes (Get-OrganizationConfig shows AuditDisabled as False). If a mailbox's AuditOwner, AuditDelegate or AuditAdmin list was customised, check that UpdateInboxRules is still in it, and that the acting account does not bypass mailbox auditing.
Fields
The operation’s own fields first, then the fields every Microsoft 365 unified audit log (Exchange) record has. Field names are the JSON paths of the record as the vendor documents it.
| Field | What it holds |
|---|---|
LogonType | Who acted on the mailbox (0 Owner, 1 Admin, 2 Delegated, 3 Transport, 4 SystemService, 6 DelegatedAdmin). |
MailboxOwnerUPN | The owner of the mailbox whose inbox rules changed. |
MailboxGuid | The Exchange GUID of that mailbox. |
ClientIPAddress | The address of the device used, in IPv4 or IPv6 form. |
ClientProcessName | The email client that was used to access the mailbox. |
ClientVersion | The version of that email client. |
SessionId | Identifier of the session; separates the actions of one session from the owner's everyday activity. |
Fields every Microsoft 365 unified audit log (Exchange) record has (17)
| Field | What it holds |
|---|---|
CreationTime | When the record was generated, in UTC. |
Id | Unique identifier of the audit record. |
OperationRead by 1 rule | The activity. For Exchange admin records, the name of the cmdlet that was run; for mailbox audit records, the mailbox action. The operation this page is about. |
RecordType | The kind of record (1 ExchangeAdmin for a cmdlet, 2 ExchangeItem and 3 ExchangeItemGroup for mailbox actions). |
Workload | The Microsoft 365 service the activity happened in, Exchange for every record of this source. |
OrganizationId | GUID of the Microsoft 365 tenant, the same in every service. |
OrganizationName | The name of the tenant. |
UserId | UPN of the user who performed the activity. Activity of system accounts such as NT AUTHORITY\SYSTEM is recorded too. |
UserKey | An alternative ID for the user in UserId (the passport unique ID, PUID, for Exchange activity). |
UserType | Who performed the activity (0 Regular, 2 Admin, 3 DCAdmin, 4 System, 5 Application, 6 ServicePrincipal, 9 PartnerTechnician, 10 Guest...). |
ClientIP | Address of the device used for the activity; for some services it can be the address of an application acting for the user. |
ObjectId | For Exchange admin records, the object the cmdlet changed (a mailbox, a rule, a policy, a role group); for mailbox audit records, what the action was done on. |
ResultStatus | Whether the activity succeeded. The schema gives True or False for Exchange admin records and Succeeded, PartiallySucceeded or Failed for others; Microsoft's own sample Exchange records also show Success, so match all of them. |
ExternalAccess | For a cmdlet, true when it was run by Microsoft datacenter personnel, a datacenter service account or a delegated administrator, false when someone in your organization ran it. For a mailbox action, true when the user's domain differs from the mailbox owner's. |
OriginatingServer | The Exchange server the cmdlet ran on, or the operation came from. |
TokenObjectId | The oid claim (object ID of the signed-in user or application) of the Microsoft Entra token behind the activity. |
TokenTenantId | The tid claim (tenant) of that token. |
Values to know
LogonType
| Value | Meaning | Signal |
|---|---|---|
0 | The mailbox owner changed their own rulesMost records; read the rules if the address or client is unusual. | Expected |
1 | An admin changed the rules | Worth knowing |
2 | A delegate of the mailbox changed the rulesSomeone with access to another person's mailbox changed how its mail is handled; confirm with the owner. | Attack signal |
Volume and noise
Every rule change made in Outlook writes one, and the detection rule reports every record, so it is noisy in most tenants; the record alone does not show whether the rule forwards or hides mail. A change made by a delegate or an admin (LogonType 2 or 1), from an address or client the user does not normally use, or followed by mail of the user going to an outside address, is the record to read first.
Keeping it manageable
- List the mailbox's rules with
Get-InboxRule -Mailbox <mailbox> | Format-Listand look for forwarding, redirecting, deleting, or moving and marking as read. - Compare
UserIdwithMailboxOwnerUPNand readLogonType; a rule changed by someone other than the owner needs an explanation. - Use
SessionIdandClientIPAddressto find the sign-in behind the change, and check it for a risky or unfamiliar sign-in.
Sample event
A Microsoft 365 unified audit log (Exchange) record in the vendor’s format, with made-up values.
{
"CreationTime": "2026-11-18T09:30:12",
"Id": "6f1c2d3e-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
"Operation": "UpdateInboxRules",
"OrganizationId": "00000000-0000-0000-0000-00000000c0de",
"RecordType": 2,
"ResultStatus": "Succeeded",
"UserKey": "10032001A2B3C4D5",
"UserType": 0,
"Workload": "Exchange",
"ClientIP": "203.0.113.24",
"ObjectId": "",
"UserId": "j.doe@corp.example.com",
"ExternalAccess": false,
"OrganizationName": "corpexample.onmicrosoft.com",
"OriginatingServer": "AM0PR01MB0001 (15.20.8100.10)",
"TokenObjectId": "00000000-0000-0000-0000-0000000a11ce",
"TokenTenantId": "00000000-0000-0000-0000-00000000c0de",
"LogonType": 0,
"MailboxOwnerUPN": "j.doe@corp.example.com",
"MailboxGuid": "00000000-0000-0000-0000-0000000b0b01",
"ClientIPAddress": "203.0.113.24",
"ClientProcessName": "OUTLOOK.EXE",
"ClientVersion": "16.0.18000.20000",
"SessionId": "00000000-0000-0000-0000-000000005e57"
}Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
Why does the record not say what the rule does?
Microsoft documents the Exchange Mailbox schema's OperationProperties collection only as operation-specific properties and does not list what UpdateInboxRules puts there. Read the mailbox's rules with Get-InboxRule, or use the New-InboxRule and Set-InboxRule records, which carry the rule's parameters, for changes made outside Outlook.