Identify Users When Microsoft 365 Audit Logs Show Numeric UserKey Values
Question details
The user needs to identify accounts in Microsoft 365 audit records that show a numeric UserKey value in UserId and ObjectId.

- 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.
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.
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.
Open the Microsoft Purview portal, go to Audit, and search the relevant date range and activities. Open an affected result to inspect its details.
In the event details or an exported audit record, examine UserId, UserKey, ObjectId, RecordType, Operation, CreationTime, and any additional identity or workload-specific properties.
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.
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.

Ask Microsoft Support to Verify the Identity Representation
Use this option if related records do not identify the account or the field values appear to have changed.
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.

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.




