Compliance Problems

Identify Users When Microsoft 365 Audit Logs Show Numeric UserKey Values

Bushra ParveenBushra Parveen Nov 25, 2026 869 views

Question details

The user needs to identify accounts in Microsoft 365 audit records that show a numeric UserKey value in UserId and ObjectId.

Identify Users in Microsoft 365 Audit Logs with Numeric UserKey Values
Product
Microsoft 365 Audit
Device & OS
not provided
Scenario
Reviewing audit records to determine which user performed an activity.
Observed behavior
Older records showed an account name in UserId and ObjectId, while newer records show the numeric UserKey value in all three fields.
Before you start

Confirm that you have permission to search Microsoft Purview Audit and, if needed, review Microsoft Entra sign-in logs. Note the affected record's date, workload, operation, and numeric identifier so you can compare related events.

Solution 1Recommended

Compare Audit Records and Related User Activity

Use event details and related records to find evidence linking the numeric identifier to an account.

The meaning and availability of audit properties can vary by workload and event type. A numeric UserKey is not necessarily a Microsoft Entra object ID, and ObjectId may identify a resource rather than a user.

1
Find the affected event

Open the Microsoft Purview portal, go to Audit, and search the relevant date range and activities. Open an affected result to inspect its details.

2
Inspect the event data

In the event details or an exported audit record, examine UserId, UserKey, ObjectId, RecordType, Operation, CreationTime, and any additional identity or workload-specific properties.

3
Compare related records

In Audit, search the same time period and workload for related activity. Compare older and newer events for the same activity or resource, looking for an account name and matching context.

4
Check sign-in and directory data

In the Microsoft Entra admin center, review Monitoring & health > Sign-in logs around the event time and Identity > Users for candidate accounts. Correlate the available timestamps, applications, IP addresses, and other details before attributing the event.

Compare Audit Records and Related User Activity
Confirm the match: A shared timestamp or numeric value alone may not prove a user's identity. Use multiple matching details, and avoid assuming that the numeric UserKey can be searched directly as an Entra object ID.
Free Microsoft Office alternative

Review Audit Exports with WPS Office

WPS Office is a free, lightweight, easy-to-use alternative for working with Office files. Its familiar interface and Microsoft Office format compatibility make it convenient to move existing spreadsheets and documents into WPS; it does not change Microsoft 365 audit logs or resolve identity mappings.

Review and compare exported audit data in WPS SpreadsheetCompatible with Microsoft Excel XLSX and other Office file formatsFamiliar menus make the transition from Microsoft Office easierFree and lightweight for everyday document work
microsoft office alternative - wps office

Frequently Asked Questions

Why does UserId show a number instead of an account name?

The identity representation may differ by event type, workload, or over time. Inspect the full event in Microsoft Purview Audit and compare related records before concluding that the schema has changed.

Can I search for the numeric UserKey as a Microsoft Entra object ID?

Not necessarily. A numeric UserKey is not automatically an Entra object ID. Review related audit and sign-in events, and ask Microsoft Support about the specific identifier if you cannot map it.

Does ObjectId always identify the user who performed the action?

No. Depending on the workload and event type, ObjectId can refer to the affected object or resource. Check the event's other properties and its workload-specific schema.

What should I provide to Microsoft Support?

Provide representative audit event details, including the dates, workloads, operations, UserId, UserKey, and ObjectId values. Include examples from before and after the apparent change if available.