Understanding RecordType Numbers in Microsoft 365 Unified Audit Logs
The RecordType integer in Microsoft 365 Unified Audit Log CSV exports identifies the exact cloud workload and AuditData schema—for example, 1 is ExchangeAdmin, 2 is ExchangeItem, 3 is ExchangeItemGroup, 6 is SharePointFileOperation, 8 is AzureActiveDirectory, 9 is AccountLogon, 14 is SharePointSharingOperation, 15 is ExchangeItemAggregated, 25 is MicrosoftTeams, and 50 is ComplianceSearch.
Architecture & Telemetry Context
When opening a raw Purview CSV export for the first time, the third column—RecordType—contains mysterious integers like 1, 2, 6, 8, 15, or 50 instead of readable service names. Unless you keep Microsoft’s enumeration memorized, filtering millions of tenant events or scoping targeted Search-UnifiedAuditLog extractions becomes slow trial and error.
Knowing which RecordType values map to Exchange rules, Entra directory modifications, SharePoint downloads, and eDiscovery searches lets incident responders shrink noisy multi-gigabyte exports down to high-signal forensic subsets in seconds.
Passing explicit -RecordType enum names into Search-UnifiedAuditLog executes server-side filtering before records ever hit the 50,000-row return cap. For instance, filtering strictly on ExchangeAdmin (1) and AzureActiveDirectory (8) pulls every inbox rule, transport rule, MFA change, role escalation, and OAuth consent across an entire tenant while skipping millions of noisy SharePoint FileAccessed events.
AuditVane maps over 20 Purview RecordType integers automatically during log normalization so the Workload column always shows readable names like ExchangeAdmin, SharePointFileOperation, or ComplianceSearch even when the raw JSON omits Workload.
High-Priority Purview RecordType Reference Table
| RecordType Integer & Name | Primary Operations Covered | DFIR Investigation Priority |
|---|---|---|
| 1 · ExchangeAdmin | New-InboxRule, Set-Mailbox, New-TransportRule, Set-AdminAuditLogConfig | Critical — BEC rules, forwarding & audit tampering |
| 2 / 3 · ExchangeItem / Group | Send, SendAs, SoftDelete, HardDelete, SearchQueryInitiatedExchange | High — Phishing sent items & anti-forensic purges |
| 6 · SharePointFileOperation | FileDownloaded, FileSyncDownloadedFull, FileAccessed, FileUploaded | High — Data exfiltration & OneDrive syncing |
| 8 / 9 · AzureActiveDirectory | Consent to application, Add member to role, Security Info, UserLoginFailed | Critical — OAuth apps, MFA, roles & logins |
| 14 · SharePointSharingOperation | AnonymousLinkCreated, AnonymousLinkUsed, AddedToSecureLink | High — Public/external link exfiltration |
| 15 · ExchangeItemAggregated | MailItemsAccessed (Bind/Sync), UserLoggedIn | Critical — Proof of email reads & 180d fallback logins |
| 25 · MicrosoftTeams | ChatCreated, MemberAdded, AppInstalled, TeamsSessionStarted | Medium/High — External Teams vishing & bots |
| 50 · ComplianceSearch | New-ComplianceSearch, New-ComplianceSearchAction, Remove-MailboxSearch | High — Tenant-wide eDiscovery PST exports |
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
RecordType = 1 | ExchangeAdmin PowerShell/cmdlet log | Watch Parameters array for rules & forwarding |
RecordType = 6 | SharePoint/OneDrive file operations | Inspect SourceFileName, SiteUrl, UserAgent |
RecordType = 8 | Entra ID Directory & App changes | Watch ModifiedProperties for Role/Scope |
RecordType = 14 | SharePoint/OneDrive external sharing | Inspect TargetUserOrGroupName & ObjectId |
RecordType = 15 | Aggregated Exchange/Login events | Watch MailAccessType=Bind & IsThrottled |
RecordType = 50 | Purview eDiscovery compliance actions | Verify who exported SearchName archives |
RecordType 8 (AzureActiveDirectory) Inside AuditData JSON
{
"CreationTime": "2026-12-03T19:05:44Z",
"RecordType": 8,
"Workload": "AzureActiveDirectory",
"Operation": "Add member to role",
"UserId": "it.contractor@contoso-demo.invalid",
"Target": [{ "ID": "svc-backup-sync@contoso-demo.invalid" }],
"ModifiedProperties": [{ "Name": "Role.DisplayName", "NewValue": "Exchange Administrator" }]
}
Here RecordType 8 signals the AzureActiveDirectory schema, meaning Target and ModifiedProperties arrays carry the elevated account and granted directory role name.
AuditVane displays AzureActiveDirectory in the Workload column and flags the record as AV-011 Critical.
Targeted Multi-RecordType PowerShell Sweep for Tenant Triage
Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-30) -EndDate (Get-Date) `
-RecordType ExchangeAdmin,AzureActiveDirectory,SharePointSharingOperation,ComplianceSearch `
-SessionId ([guid]::NewGuid()) -SessionCommand ReturnLargeSet -ResultSize 5000 |
Export-Csv .\Tenant_HighSignal_30d.csv -NoTypeInformation
Sample Workload Count Distribution
RecordType Workload Count
---------- -------- -----
1 ExchangeAdmin 412
8 AzureActiveDirectory 980
14 SharePointSharingOperation 315
50 ComplianceSearch 4
Real-World Incident Walkthrough
A SOC responder needs to check whether any of 2,000 employees received a stealth Inbox Rule or granted an illicit OAuth app consent over the last 30 days. Pulling ALL Purview events across 2,000 users would exceed 800,000 noisy SharePoint and Teams events.
Instead, the responder scopes two rapid Search-UnifiedAuditLog passes: one with -RecordType ExchangeAdmin (1) and one with -RecordType AzureActiveDirectory (8)—yielding just 1,900 focused administrative and identity events. Dropping both CSVs into AuditVane immediately resolves every RecordType label and triggers AV-001, AV-004, and AV-005 in under half a second.
Step-by-Step Triage, Containment & Verification
- Always begin full-tenant sweeps with targeted high-signal RecordTypes (1, 8, 14, 50) to avoid drowning in SharePoint FileAccessed noise.
- Once an affected user UPN is identified, run a second unrestricted sweep filtered by -UserIds to recover RecordType 2, 3, 6, 9, and 15 events.
- Drop all exported CSVs into AuditVane so RecordType codes automatically translate to readable workload names.
- Use AuditVane’s search box to filter by specific workloads (e.g., ComplianceSearch or SharePointSharingOperation).
- Always pair RecordType 8 and 9 Purview exports with Entra Sign-In JSON exports when within the 30-day Entra window.
How to Verify Containment Completed Cleanly
- Confirmed ExchangeAdmin (1) and AzureActiveDirectory (8) swept across the entire suspected breach timeframe.
- Confirmed SharePoint FileOperation (6) and Sharing (14) collected for users showing risky logins.
- All RecordType integers resolved cleanly in AuditVane’s Workload column.
Analyst Blind Spots, Licensing Quirks & False Positives
Do not filter solely for RecordType 8 expecting to capture every user login. Successful UserLoggedIn events frequently emit under RecordType 15 (ExchangeItemAggregated) while failed logins appear under RecordType 9 (AzureActiveDirectoryAccountLogon).
Likewise, Teams file downloads in the background generate SharePointFileOperation (RecordType 6) events rather than RecordType 25.
Frequently Asked Questions
Why does UserLoggedIn appear under RecordType 15 instead of 8?
Microsoft batches certain authentication and token-issuance telemetry under RecordType 15 and 9 depending on endpoint flow.
Does AuditVane resolve RecordType numbers automatically?
Yes, AuditVane includes a lookup table mapping Purview RecordType integers to human-readable Microsoft service names.
Which RecordType captures Microsoft Teams channel and chat events?
RecordType 25 logs MicrosoftTeams events (ChatCreated, MemberAdded), while file downloads inside Teams chats emit RecordType 6.
Which RecordType covers eDiscovery PST exports?
RecordType 50 (ComplianceSearch) logs content search creation, export actions, and archive downloads.