Skip to content
Connector

Microsoft Defender for Office 365 v2

Read and update Defender for Office 365 alerts through Microsoft Graph

Lists, reads and updates Microsoft Defender for Office 365 alerts through Microsoft Graph, with a Graph pass-through for other endpoints.

@ftnt-dspilleMaintainer v2.0.0 Published Nov 28, 2026
Download .tgz · 19 KB

microsoft-defender-office-365-v2_2.0.0.tgz

sha256:5e6aa4884dbfc7580d9393c575453a78be01f53097bde5d299a958c25474dc2f

Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.

Reads and updates Microsoft Defender for Office 365 alerts through the Microsoft Graph security alerts_v2 endpoint. Operations: List Alerts (filter by service, status, severity, classification, determination, creation time or OData, pages followed up to a limit), Get Alert (one alert by id), Update Alert (PATCH status, classification, determination and owner; returns the alert after the update), Execute Graph Request (any Graph v1.0 endpoint with GET, POST or PATCH; errors come back as data), Health Check (token plus one alert read) and a hidden List Alert Choices that feeds the Alert dropdown. Application-only client credentials; only the Graph host is called, the token is refreshed once on 401, and 429 and 503 responses honour Retry-After.

Live-tested on FortiSOAR 8.0.1 against a Microsoft 365 lab tenant.

Not live-tested

  • Every operation passed live. Error responses other than the ones the lab tenant produced (401, the 404 of Update Alert and the pass-through, and the pass-through 403) are checked against labelled synthetic error mocks in the offline suite, not against live responses.

Setup

The Microsoft 365 / Graph authentication needs an Entra ID app registration with admin consent for the application permission SecurityAlert.Read.All (read alerts) and, to update alerts, SecurityAlert.ReadWrite.All. Execute Graph Request needs whatever permission the called endpoint requires; Graph names the missing permission in a 403 response.

Configuration · 5 fields

  • Tenant ID tenant_id text required

    Microsoft Entra ID tenant (directory) ID or domain.

  • Client ID client_id text required

    Application (client) ID of the Entra ID app registration.

  • Client Secret client_secret password required

    Client secret of the app registration (Certificates & secrets).

  • Verify SSL verify_ssl checkbox

    Specifies whether SSL certificates are to be verified.

    Default true

  • Timeout (seconds) timeout integer

    Timeout for each Graph request.

    Default 60

Operations · 6

  • List Alerts 8 params
    list_alerts

    List security alerts from Microsoft Defender XDR (alerts_v2), filtered by service, status, severity, classification, determination, creation time or OData. Defender for Office 365 alerts use the service filter.

    • Service Source service_source select

      Only alerts from this Defender service. Office 365 alerts: microsoftDefenderForOffice365.

      Options microsoftDefenderForOffice365microsoftDefenderForEndpointmicrosoftDefenderForIdentitymicrosoftDefenderForCloudAppsmicrosoftDefenderForCloudmicrosoftDefenderForIoT
    • Status status select

      Only alerts in this status.

      Options NewIn ProgressResolved
    • Severity severity select

      Only alerts of this severity.

      Options UnknownInformationalLowMediumHigh
    • Classification classification select

      Only alerts with this classification.

      Options UnknownTrue PositiveFalse PositiveInformational, expected activity
    • Determination determination select

      Only alerts with this determination.

      Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value
    • Created After created_after datetime

      Only alerts created at or after this UTC time (ISO 8601).

    • OData Filter odata_filter text

      Extra OData $filter clause, ANDed with the other filters.

    • Limit top integer

      Maximum alerts to return (1 to 1000, default 50). Pages are followed up to this count.

    Returns typeproperties
  • Get Alert 1 param
    get_alert

    Read one alert by its id.

    • Alert alert_id select required

      Alert, picked by title from the tenant's recent alerts. The stored value is 'title [alert id]'; a bare id also works.

    Returns typeproperties
  • Update Alert 4 params
    update_alert

    Update an alert's status, classification, determination or assignee (at least one). Returns the alert after the update.

    • Alert alert_id select required

      Alert, picked by title from the tenant's recent alerts. The stored value is 'title [alert id]'; a bare id also works.

    • Status status select

      New status.

      Options NewIn ProgressResolved
    • Classification classification select

      New classification.

      Options UnknownTrue PositiveFalse PositiveInformational, expected activity

      When Classification is True Positive

      • Determination determination select

        Why the alert was classified (shown for a classified alert).

        Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value

      When Classification is False Positive

      • Determination determination select

        Why the alert was classified (shown for a classified alert).

        Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value

      When Classification is Informational, expected activity

      • Determination determination select

        Why the alert was classified (shown for a classified alert).

        Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value
    • Assigned To assigned_to text

      Owner (user principal name).

    Returns typeproperties
  • Execute Graph Request 3 params
    execute_api_request

    Call any Microsoft Graph v1.0 endpoint with the connector's own auth (pass-through). Graph errors come back as data (status_code, body); other hosts are refused.

    • Method method select required

      HTTP method.

      Options GETPOSTPATCH

      When Method is POST

      • Payload (JSON) payload text

        JSON body for POST or PATCH.

      When Method is PATCH

      • Payload (JSON) payload text

        JSON body for POST or PATCH.

    • Endpoint endpoint text required

      Path under /v1.0, for example /security/alerts_v2. Full Graph URLs are accepted.

    • Query Parameters (JSON) query_params text

      JSON object of query parameters.

    Returns typeproperties
  • Health Check
    health_check

    Acquire a Graph token and read one alert.

    No parameters.

    Returns typeproperties
  • List Alert Choices
    list_alert_choices

    Dropdown source for the Alert picker: up to 100 recent alerts as 'title [alert id]' strings.

    No parameters.

    Returns typeproperties
Something wrong with this item? Sign in to report

Report a problem

Sensitive data, copied content, broken imports, anything that shouldn't be here.

At least 10 characters. Please don't paste the sensitive value itself.0/1000