Skip to content

Microsoft 365

Microsoft 365 is Microsoft's suite of mail, collaboration and sign-in (Microsoft Entra ID) with Defender XDR; one connector covers one tenant.

  • What DRACO uses: Tenant configuration for posture scans, the unified audit log, Defender XDR alerts and incidents, Entra ID users, groups and devices, Defender devices.
  • What for: Compliance and attack paths, detections, UEBA and hunts on audit events, Defender incident sync, Entra ID user response, Defender device isolation and indicators.

Add it in Connectors > Add connector: pick Microsoft 365, then choose what DRACO collects and what it may change. Add more later with Add a part on its connector page. See Connectors for how connectors, sign-in and tags work.

Parts

Part What DRACO uses Access Permissions
Posture M365 read Microsoft Graph application permissions AuditLog.Read.All, Directory.Read.All, Policy.Read.All and SharePointTenantSettings.Read.All with admin consent.
Office 365 Exchange Online Exchange.ManageAsApp and Skype and Teams Tenant Admin API application_access, and the Global Reader role for the app.
Logs Microsoft 365 audit, Microsoft Defender XDR read Audit log: Office 365 Management APIs application permission ActivityFeed.Read (and ActivityFeed.ReadDlp for DLP events) with admin consent; unified audit logging on.
Defender XDR alerts: Microsoft Graph application permissions SecurityAlert.Read.All and SecurityIncident.Read.All with admin consent.
Incidents Microsoft Defender XDR read The Microsoft Graph application permission SecurityIncident.Read.All with admin consent
Two-way sync: the Microsoft Graph application permission SecurityIncident.ReadWrite.All with admin consent
Response Add user to group (Microsoft Entra ID), Disable user (Microsoft Entra ID), Enable user (Microsoft Entra ID), Revoke sign-in sessions (Microsoft Entra ID), Isolate device (Microsoft Defender for Endpoint), Release device from isolation (Microsoft Defender for Endpoint), Add indicator (Microsoft Defender for Endpoint), Remove indicator (Microsoft Defender for Endpoint) write Add user to group (Microsoft Entra ID): application permissions GroupMember.ReadWrite.All and User.Read.All with admin consent (role-assignable groups also need RoleManagement.ReadWrite.Directory)
Disable user (Microsoft Entra ID), Enable user (Microsoft Entra ID): application permission User.EnableDisableAccount.All (or User.ReadWrite.All) with admin consent; disabling an administrator also needs a directory role such as Privileged Authentication Administrator for the app
Revoke sign-in sessions (Microsoft Entra ID): application permission User.RevokeSessions.All (or User.ReadWrite.All) with admin consent
Isolate device (Microsoft Defender for Endpoint), Release device from isolation (Microsoft Defender for Endpoint): application permissions Machine.Isolate and Machine.Read.All of the WindowsDefenderATP API with admin consent, on a separate write app registration (or the Microsoft 365 provider's app)
Add indicator (Microsoft Defender for Endpoint), Remove indicator (Microsoft Defender for Endpoint): application permission Ti.ReadWrite.All of the WindowsDefenderATP API with admin consent, on a separate write app registration (or the Microsoft 365 provider's app)
Directory Microsoft 365 audit, Microsoft Defender XDR read Entra ID users, groups and devices: the Microsoft Graph application permissions User.Read.All, Group.Read.All and Device.Read.All with admin consent, on the provider's app registration.
Admin and MFA flags (optional): AuditLog.Read.All (Microsoft Entra ID P1 or P2).
Defender for Endpoint devices: the WindowsDefenderATP application permission Machine.Read.All with admin consent.

Posture

Note

Government Cloud Support

Government cloud accounts or tenants (Microsoft 365 Government) are not supported.

Prerequisites

Set up authentication for Microsoft 365 with the Microsoft 365 Authentication guide before starting either path:

  • Register an application in Microsoft Entra ID
  • Grant the Microsoft Graph and external API permissions listed for the provider
  • Generate an application certificate (recommended) or client secret
  • Prepare PowerShell module permissions to enable every check

Connect the provider in DRACO

Step 1: Locate the Domain ID

  1. Open the Microsoft Entra admin center, then search for "Domain" or go to Entra ID > Domain names.

    Search Domain Names

    Custom Domain Names

  2. Select the domain that acts as the unique identifier for the Microsoft 365 account in DRACO.

Step 2: Open DRACO

  1. Sign in to DRACO, open Connectors, click Add connector and pick Microsoft 365: the wizard opens at Link a Provider.
  2. Add the Domain ID and an optional alias (the connector's name), then click Next.

Step 3: Choose and Provide Authentication

After the Domain ID is in place, select the app-only authentication option that matches the Microsoft Entra ID setup:

  1. Select App Certificate Credentials.
  2. Enter the Tenant ID, the unique identifier for the Microsoft Entra ID directory.
  3. Enter the Client ID of the Entra application registration.
  4. Paste the Base64-encoded PFX in Certificate Content.

Use this method to avoid managing secrets and to unlock all Microsoft 365 checks, including the PowerShell-based ones. Full setup steps are in the Authentication guide.

Application Client Secret Authentication
  1. Select App Client Secret Credentials.
  2. Enter the Tenant ID and the Client ID.
  3. Enter the Client Secret.

For the complete setup workflow, follow the Authentication guide.

Step 4: Launch the Scan

  1. Click Authenticate, then Check connection.

  2. When the connection works, launch the first scan (Run now or On a schedule).

  3. After Launch Scan, the wizard goes on with Collectors (tick Logs, Incidents or Directory; the directory is read with the logs, so tick Logs with it) and Responders (tick what DRACO may change in the tenant) on the same connector. Tick nothing more to keep scans only; anything else can be added later with Add a part on the connector page.

Every authentication option, with the exact permissions: Microsoft 365 authentication.

Logs

The Microsoft 365 Management Activity data source collects Entra ID, Exchange, SharePoint, general audit and DLP events with the provider's app registration. The Microsoft Defender XDR data source collects the alerts and incidents of every Defender product: see Microsoft Defender XDR.

  1. On the provider's app registration: API permissions > Add a permission > Office 365 Management APIs > Application permissions > ActivityFeed.Read (and ActivityFeed.ReadDlp), then Grant admin consent.
  2. Check that unified audit logging is on (Microsoft Purview > Audit), pick the provider and test.

DRACO starts the missing subscriptions; the first content can take up to 12 hours to appear. Microsoft keeps the content 7 days.

Directory

Pulls the vendor's directory into the ID directory (readable names for alerts, incidents and investigations) and the assets: Entra ID users (enabled, admin and MFA flags), groups and devices; Defender for Endpoint devices (OS, last seen, addresses, health and risk). It signs in with the sign-in of the logs part, so turn logs on first, then turn on Directory on the connection (or tick Pull the directory in the log source's settings) and run Test: the Directory row reads one page of each part and names a missing permission.

Permissions (read), on the Microsoft 365 provider's app registration, with admin consent:

  • Entra ID, read with the Microsoft 365 audit source: Microsoft Graph application permissions User.Read.All, Group.Read.All and Device.Read.All (Directory.Read.All, asked by posture scans, covers them).
  • Admin and MFA flags (optional, Microsoft Entra ID P1 or P2): AuditLog.Read.All.
  • Defender for Endpoint devices, read with the Defender XDR source: the WindowsDefenderATP application permission Machine.Read.All. Defender devices are read from the commercial Microsoft cloud.

DRACO reads the directory every hour (only what changed, where the vendor's API allows it) and in full once a day. Names and asset facts the vendor no longer lists are removed after the ID retention period. When the pull fails three times in a row, the connection shows the error and a connector health problem is opened.

Incidents

Imports Microsoft Defender XDR incidents as DRACO incidents and keeps their status and classification in sync: see Microsoft Defender XDR: incidents.

Response

Runs response actions on the Microsoft 365 tenant from incidents and workflows: Add user to group, Disable user, Enable user and Revoke sign-in sessions (Microsoft Entra ID); Isolate device, Release device from isolation, Add indicator and Remove indicator (Microsoft Defender for Endpoint).

Setup: Response actions, Microsoft Defender: Response.

If you turn on several parts

When you connect Microsoft 365 once and tick several parts, the wizard shows one guide for all of them: what to check first, the access to create once, one list of permissions that names the part each one is for, the extra steps of each part, and one test that checks every part on its own. Turning a part on later shows only what it adds.

Posture, the audit log, Defender XDR alerts and incidents all use this app registration: register it and create its secret or certificate once, then add the application permissions of each part and grant admin consent. Response actions need write permissions: give them to a separate app registration pasted at the Write access step.

Any part can be skipped (Skip for now) and finished later: the connection is saved with what is done, and its page lists what is not set up yet with a Set up button that opens the wizard at that step.