Query Details

Entra ID - Microsoft Entra Connect Sync Audit Events

Entra ID Entra Connect Sync Audit Events

Query

Application!*[System[Provider[@Name='Entra Connect Admin Actions'] and (EventID=2523 or EventID=2524 or EventID=2525 or EventID=2526)]]
Application!*[System[Provider[@Name='Entra Connect Admin Actions'] and (EventID=2503 or EventID=2504 or EventID=2505 or EventID=2506 or EventID=2507 or EventID=2508 or EventID=2509 or EventID=2510 or EventID=2511 or EventID=2512 or EventID=2513 or EventID=2514 or EventID=2515 or EventID=2516 or EventID=2517 or EventID=2518 or EventID=2519 or EventID=2520)]]
Application!*[System[Provider[@Name='Entra Connect Admin Actions'] and (EventID=2521 or EventID=2522)]]

About this query

Explanation

This query is designed to analyze audit logs from Microsoft Entra Connect Sync, specifically focusing on administrative actions. Here's a simplified breakdown of what the query does:

  1. Data Source: It looks at security events where the source is "Entra Connect Admin Actions."

  2. Event Filtering: It filters events based on specific Event IDs that are related to administrative actions. These IDs are specified in the query to capture relevant events.

  3. XML Parsing: The query extracts and parses XML data from the event logs to make it easier to work with.

  4. Data Extraction: It extracts specific fields from the parsed data, such as:

    • ActionType: The type of action performed.
    • AuditEventType: The type of audit event.
    • Category: The category of the event.
    • Name: The name associated with the event.
    • Status: The status of the action.
    • EventJsonTime: The timestamp of the event.
    • User: The user who performed the action.
    • Details: Additional details about the event.
  5. Output: The query projects (selects) these fields along with the time the event was generated and the Event ID.

  6. Sorting: Finally, it sorts the results by the time the event was generated, in descending order, so the most recent events appear first.

This query is useful for monitoring and auditing administrative actions in Microsoft Entra Connect Sync, helping administrators track changes and actions taken within the system.

Details

Alex Verboon profile picture

Alex Verboon

Released: September 6, 2025

Tables

SecurityEvent

Keywords

EntraConnectSyncAuditLogsEventLogAnalyticsWorkspaceWindowsSecurityDataConnectorCollectionRuleEventsSecurityEventEventSourceNameEventDataActionTypeAuditEventTypeCategoryNameStatusEventJsonTimeUserDetailsTimeGeneratedEventID

Operators

Application!*SystemProvider@NameandEventIDorSecurityEvent|where==extendparse_xmltostringcoalesceisnotemptytodynamicprojectorder bydesc

Actions

GitHub