Why Microsoft Purview Audit Logs Show a SID Instead of a UPN
Question details
Users reviewing Microsoft Purview audit records notice that certain operations display a Security Identifier (SID) rather than the expected User Principal Name (UPN).

- Product
- Microsoft Purview
- Device & OS
- not provided
- Scenario
- Administrators are reviewing compliance data and Search-UnifiedAuditLog results to track mailbox access and user activity.
- Observed behavior
- The audit logs record a server-generated SID instead of the user's UPN, particularly when logging FolderBind operations.
Ensure you have the necessary administrator permissions in Microsoft Purview to view audit logs and understand basic Active Directory user identification principles.
Understanding Server-Generated Security Information in Exchange
This explains the native behavior of Exchange logging during delegate or administrative access.
In Microsoft Purview and Exchange, FolderBind records often contain server-generated security information.
When a mailbox is accessed by an administrator, a delegate, or another non-owner, Exchange records the system-level interaction. Because these actions involve internal security principals, the system logs the user's Security Identifier (SID) instead of the User Principal Name (UPN). A SID is a unique, immutable value used to identify users, computers, or groups.
Check the 'Operation' column in your Unified Audit Log results to see if the action is listed as 'FolderBind'.
Verify if the mailbox was accessed by someone other than the primary owner, such as an IT admin or a user with delegate permissions.
Look for the string starting with 'S-1-5-' in the UserIds field, which confirms the system has recorded the SID for accurate security principal identification.

Converting the Logged SID to a UPN via PowerShell
Use PowerShell to translate the logged SID back into a recognizable user email (UPN) for auditing clarity.
Looking for a Lightweight Alternative for Your Daily Office Tasks?
While enterprise compliance and server-level auditing rely on tools like Microsoft Purview, your everyday document editing doesn't have to be complex or expensive. WPS Office provides a free, highly compatible alternative to Microsoft Office for seamless productivity.
- 1. Download the installer: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the software: Run the downloaded file and follow the simple on-screen instructions to install WPS Office.
- 3. Open and edit files seamlessly: Launch WPS Office and instantly open your existing .docx, .xlsx, or .pptx files with perfect formatting compatibility.

Frequently Asked Questions
What exactly is a FolderBind operation in Exchange?
A FolderBind operation occurs when a mailbox folder is accessed by an account other than the primary mailbox owner. This typically happens during delegate access, administrative reviews, or when a service account syncs folder contents.
What does SID stand for and why is it used?
SID stands for Security Identifier. It is a unique string value assigned by a Windows domain controller during provisioning to identify a security principal (like a user or group). Unlike a UPN, a SID never changes even if the user's name or email address is updated.
Can I configure Microsoft Purview to always display the UPN instead of the SID?
No, this is natively controlled by how Exchange generates security records for non-owner access. You cannot force the unified audit log to natively replace the SID with a UPN for FolderBind operations; you must resolve the SID externally using scripts or PowerShell.
How can I search for a specific user's activity if I only have their SID?
You can resolve the SID to a UPN using PowerShell (e.g., Get-ADUser). Once you have the translated UPN, you can run a new Search-UnifiedAuditLog query filtering specifically for that UserPrincipalName to view their broader activity.




