logo
search
Compliance Problems

How to Identify the User Behind a Service Principal in Microsoft 365 Audit Logs

Ayan MasoodAyan Masood Oct 13, 2026 868 views

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.

Identifying the User Behind a Service Principal in Microsoft 365 Audit Logs
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.
Before you start

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.

Solution 1Recommended

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.

1
Access the Purview Portal

Log in to the Microsoft Purview compliance portal and navigate to the Audit page from the left-hand menu.

2
Search for the Event

Configure your date range and search for the specific distribution list change event, then click on the record to open the details pane.

3
Locate the Application ID

Scroll through the detailed properties payload to find the 'ApplicationId' or 'ServicePrincipalId' field.

4
Identify the Application

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.

5
Review Sign-in Logs

Open the Sign-in logs for that specific Service Principal to verify the IP address, timestamp, or resource that initiated the session.

Investigate Audit Event Details and Correlation IDs
Delegated Permissions: If the application was acting on behalf of a user (delegated permissions), the original user's Object ID might also be visible in the raw audit payload under the 'Parameters' or 'ModifiedProperties' fields.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Install the Software: Run the setup file and follow the straightforward on-screen instructions to install the suite.
  3. 3. Open Your Documents: Launch WPS Office and instantly open your existing Microsoft Office files without losing your formatting.
Highly compatible with standard Microsoft Office formats including DOCX, XLSX, and PPTX.Familiar and intuitive user interface designed for a seamless transition.Lightweight installation that runs smoothly even on older hardware and operating systems.Built-in PDF editing capabilities for comprehensive and secure document management.
microsoft office alternative - wps office

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.