How to Identify the User Behind a Service Principal in Microsoft 365 Audit Logs
Question details
The user needs to trace the original administrator, automation, or process responsible for a distribution list change when the audit log attributes the action to a service principal rather than a human.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Reviewing Microsoft 365 audit events for compliance to track administrative modifications made to an email distribution list.
- Observed behavior
- The Microsoft 365 audit log displays an application or service principal identifier instead of the actual human administrator's username.
Ensure you are signed in with Microsoft 365 Global Administrator or Compliance Administrator privileges, as these roles are required to access detailed audit logs and Azure Active Directory sign-in records.
Investigate Audit Event Details and Correlation IDs
Manually review the detailed properties of the audit log entry and correlate the Application ID with Entra ID sign-in logs to track down the automation or application.
When a service principal performs an action, it often means an automated script, Power Automate flow, or delegated third-party application executed the change. By identifying the specific Application ID, you can trace which service was responsible for the modification.
Log in to the Microsoft Purview compliance portal and navigate to the Audit page from the left-hand menu.
Configure your date range and search for the specific distribution list change event, then click on the record to open the details pane.
Scroll through the detailed properties payload to find the 'ApplicationId' or 'ServicePrincipalId' field.
Navigate to the Microsoft Entra admin center (Azure AD), go to Enterprise Applications, and search for the discovered Application ID to see what application or automation is tied to it.
Open the Sign-in logs for that specific Service Principal to verify the IP address, timestamp, or resource that initiated the session.

Open a Microsoft 365 Support Request
If manual investigation does not reveal the originating user or automation source, request assistance from Microsoft Support to analyze backend correlation data.
Enhance Your Productivity with WPS Office
While Microsoft 365 provides complex enterprise identity and compliance logging tools, your daily document creation doesn't have to be complicated or expensive. WPS Office is a fast, lightweight, and completely free alternative for handling all your word processing, spreadsheet, and presentation needs.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the Software: Run the setup file and follow the straightforward on-screen instructions to install the suite.
- 3. Open Your Documents: Launch WPS Office and instantly open your existing Microsoft Office files without losing your formatting.

Frequently Asked Questions
What is a service principal in Microsoft 365?
A service principal is a security identity created within Microsoft Entra ID (formerly Azure AD) for applications, hosted services, and automated tools. It allows these services to securely access Microsoft 365 resources without requiring a traditional user password.
Why would a service principal modify a distribution list?
This typically occurs when an organization utilizes automated scripts, directory synchronization tools, third-party management applications, or Power Automate flows that have been granted programmatic permissions to manage Exchange or Microsoft 365 groups.
How can I restrict a service principal's permissions to prevent unauthorized changes?
You can manage and restrict application permissions by logging into the Microsoft Entra admin center, selecting 'Enterprise Applications', choosing the specific application, and modifying its API permissions to enforce the principle of least privilege.




