Purview UAL & Parsing · All Cloud Tactics

Understanding RecordType Numbers in Microsoft 365 Unified Audit Logs

Direct Answer (Key Forensic Takeaway)

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.

1. RAW TELEMETRY Purview UAL & Parsing All Cloud Tactics 2. CLIENT-SIDE PARSE AuditVane Engine RecordType numbers M365 unified au 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for RecordType numbers M365 unified audit log (All Cloud Tactics)
AdSense-Ready In-Article Placement

High-Priority Purview RecordType Reference Table

RecordType Integer & NamePrimary Operations CoveredDFIR Investigation Priority
1 · ExchangeAdminNew-InboxRule, Set-Mailbox, New-TransportRule, Set-AdminAuditLogConfigCritical — BEC rules, forwarding & audit tampering
2 / 3 · ExchangeItem / GroupSend, SendAs, SoftDelete, HardDelete, SearchQueryInitiatedExchangeHigh — Phishing sent items & anti-forensic purges
6 · SharePointFileOperationFileDownloaded, FileSyncDownloadedFull, FileAccessed, FileUploadedHigh — Data exfiltration & OneDrive syncing
8 / 9 · AzureActiveDirectoryConsent to application, Add member to role, Security Info, UserLoginFailedCritical — OAuth apps, MFA, roles & logins
14 · SharePointSharingOperationAnonymousLinkCreated, AnonymousLinkUsed, AddedToSecureLinkHigh — Public/external link exfiltration
15 · ExchangeItemAggregatedMailItemsAccessed (Bind/Sync), UserLoggedInCritical — Proof of email reads & 180d fallback logins
25 · MicrosoftTeamsChatCreated, MemberAdded, AppInstalled, TeamsSessionStartedMedium/High — External Teams vishing & bots
50 · ComplianceSearchNew-ComplianceSearch, New-ComplianceSearchAction, Remove-MailboxSearchHigh — Tenant-wide eDiscovery PST exports

Forensic Telemetry Fields & High-Signal Indicators

Telemetry Field / Pattern Meaning in M365 / Entra High-Signal Threat Indicator
RecordType = 1ExchangeAdmin PowerShell/cmdlet logWatch Parameters array for rules & forwarding
RecordType = 6SharePoint/OneDrive file operationsInspect SourceFileName, SiteUrl, UserAgent
RecordType = 8Entra ID Directory & App changesWatch ModifiedProperties for Role/Scope
RecordType = 14SharePoint/OneDrive external sharingInspect TargetUserOrGroupName & ObjectId
RecordType = 15Aggregated Exchange/Login eventsWatch MailAccessType=Bind & IsThrottled
RecordType = 50Purview eDiscovery compliance actionsVerify 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

  1. Always begin full-tenant sweeps with targeted high-signal RecordTypes (1, 8, 14, 50) to avoid drowning in SharePoint FileAccessed noise.
  2. 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.
  3. Drop all exported CSVs into AuditVane so RecordType codes automatically translate to readable workload names.
  4. Use AuditVane’s search box to filter by specific workloads (e.g., ComplianceSearch or SharePointSharingOperation).
  5. 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.

Related Forensics Guides