Skip to main content

Microsoft Entra ID app registration

Every Microsoft connector in CICADA signs in the same way: a tenant ID, a client (application) ID and a client secret, using the client credentials flow. Each source takes its own tenant and client IDs, so you may use one registration for all of them or one per connector. This page lists each permission, the connector that needs it, and what CICADA does with it. It is an App registration in the Entra admin centre, not an entry under Enterprise applications.

Client secret only. The connectors read a client secret. Certificate credentials on the app registration are not supported. Client secrets expire; when yours does, the connection test fails with an authentication error and you paste a new secret into the source. Leaving the secret field blank when you edit a source keeps the stored one, as long as the tenant ID stays the same. If you change the tenant ID, type the secret again: the appliance sends a saved secret only to where it was saved for.

Step by step: the app registration

  1. In the Microsoft Entra admin centre open App registrations and choose New registration. Give it a name such as CICADA IR. Single tenant. No redirect URI is needed for the connectors (SSO is separate; see single sign-on).
  2. From the overview page copy the Application (client) ID and the Directory (tenant) ID. These are the Client ID and Tenant ID fields on every Microsoft source in CICADA.
  3. Under Certificates & secrets create a client secret. Copy the value at once; it is shown only then. Note the expiry date.
  4. Under API permissions add the Application permissions from the tables below for the connectors you will use. Delegated permissions do not work; the appliance signs in as itself, not as a user.
  5. Press Grant admin consent. This needs a Global Administrator or Privileged Role Administrator. Until it is done, CICADA's connection test reports Missing required API permissions. Please grant 'Organization.Read.All' or 'Directory.Read.All' permissions and admin consent. or Access denied: Missing API permissions or admin consent required.
  6. In CICADA, configure the connection in Settings > Source Connectors when shared connectors are enabled, then select it through Sources > Add global connectors. Essentials uses Sources > Add data for its local Entra connection. Enter Tenant ID, Client ID and Client Secret, test the connection and save it. Collection authenticates independently; Test Connection is a diagnostic check.

The appliance needs outbound HTTPS to login.microsoftonline.com, graph.microsoft.com, and for Microsoft 365 manage.office.com, for Defender for Endpoint api.securitycenter.microsoft.com. See Network Requirements.

Entra ID (sign-in and audit logs)

Source: Entra ID. Essentials tier. Token scope https://graph.microsoft.com/.default.

What it reads:

  • Sign-in logs: /auditLogs/signIns
  • Directory audit logs: /auditLogs/directoryAudits
  • Risk detections: /identityProtection/riskDetections (from 1.85.16; sign-in rows also carry their own risk rating)
  • The connection test reads /organization
  • User, group and device lookups when an analyst or the AI assistant names a target: /users, /users/<id>/registeredDevices, /groups and group members
Permission (Microsoft Graph, Application)Used forNeeded when
AuditLog.Read.AllSign-in logs and directory audit logsAlways
Directory.Read.AllOrganisation record (connection test), users, groups, registered devicesAlways
IdentityRiskEvent.Read.AllRisk detections from Identity ProtectionRecommended. Without it Microsoft Graph answers 403 for risk detections; CICADA skips them, shows a warning on the source and still collects sign-in and audit logs. After granting it, use Collect on the source with the same time period
User.Read.AllSearching users by display name, UPN or mail when resolving a targetAlways
User.ReadWrite.AllResponse actions: disable account, enable account, revoke sign-in sessions, reset passwordOnly if you will run those actions from CICADA
UserAuthenticationMethod.ReadWrite.AllResponse action: reset password (with User.ReadWrite.All)Only for password resets
Application.ReadWrite.AllResponse action: revoke OAuth grants (deletes the user's app role assignments)Only for that action

Sign-in, audit and risk detection collection were confirmed against a tenant in 1.85.16. Versions before 1.85.16 asked Microsoft Graph for a risky sign-in endpoint that does not exist, which failed every Entra collection; update to 1.85.16 or later. Directory audit logs older than your tenant keeps them are skipped, and the rest of the window is collected. The three write permissions are the values the connector records in its own code and have not been confirmed against a tenant. Microsoft's Graph reference may name a narrower least-privileged permission for writing a password profile or deleting app role assignments, and a password reset through an application permission can also need a directory role on the service principal. Check Microsoft's reference for each call before granting, and treat a 403 on the first run as the signal that something more is needed.

Response actions through Entra ID

ActionWhat CICADA sendsUndo
Disable Entra AccountSets the account to disabled. The user can no longer sign in.Enable Entra Account
Revoke SessionsPOST /users/<user>/revokeSignInSessions. Every refresh token is invalidated; the user must sign in again.None needed
Reset Entra PasswordSets a random temporary password with change-at-next-sign-in. The password is stored once on the completed action; someone with Download collected credentials and sensitive output (IR lead and Admin by default) fetches it from Download credentials. It is not in the message, the audit log or the evidence store.None. The old password is gone.
Revoke OAuth GrantsLists /users/<user>/appRoleAssignments and deletes each one.Re-grant consent in Entra > Enterprise applications

Every response action goes through the approval queue. Approving needs Approve or deny actions and executing needs Execute actions on customer systems. IR lead and Admin have both by default. The AI assistant can only recommend.

Role assignments and group membership (for blast radius)

A second Entra adapter reads /roleManagement/directory/roleAssignments, /directoryRoles, /groups, group members and /servicePrincipals. It asks for RoleManagement.Read.Directory, Directory.Read.All, GroupMember.Read.All and User.Read.All. It is not offered as a source on the Sources page in the current release; grant the permissions now only if you want to be ready for it. Confirm with support before relying on it.

Microsoft 365 (unified audit)

Source: Microsoft 365. Enterprise tier. This connector reads audit records in two ways, and needs a permission for each:

  • Recent days come from the Office 365 Management Activity API, with token scope https://manage.office.com/.default. Its permissions come from the Office 365 Management APIs entry in the API permissions picker, not from Microsoft Graph.
  • Older days in your investigation period come from Microsoft's audit search, through Microsoft Graph. Its permission comes from the Microsoft Graph entry in the picker.

What it reads: it starts a subscription per content type and then lists and downloads the content blobs for your time window. By default it collects Audit.Exchange (mailbox audit), Audit.SharePoint (SharePoint and OneDrive file activity) and Audit.General (Teams and other services). Audit.AzureActiveDirectory is collected only when the source's event types name it. The connection test lists the active subscriptions.

Collection splits longer ranges into requests of at most 24 hours. These windows describe when Microsoft published the content, which can differ from the event time.

Days older than the last 7 to 14

The Management Activity API serves only recent days: 7 by Microsoft's documentation, 14 in some tenants. When your investigation period starts earlier, CICADA asks Microsoft's audit search for the older days itself. You do not export anything.

  • Microsoft prepares the records in its own time. It usually takes minutes. Microsoft says a broad search in a large tenant can take up to 48 hours. While it waits, the source says it is waiting for Microsoft.
  • CICADA waits up to 25 minutes in one collection. After that the source shows Partly collected. The recent days are already stored and analysis runs on them. Choose Continue later and CICADA picks up the same request; it does not start a new one.
  • Without the permission the recent days are still collected. The source shows Partly collected and names the permission to add. Add it, then choose Continue. Test Connection shows the same hint.
  • Microsoft limits audit searches. A tenant can start only so many in a day and run only so many at once. When Microsoft refuses, the source says so, and Continue asks again later.
  • How far back. Microsoft keeps audit records for 180 days, or one year with some licences. For dates older than that, CICADA stores what Microsoft still has and says once which dates are past 180 days.
  • Clouds without the audit search. Microsoft does not offer it in US Government L4 and L5 or in China. There, export the older records from Microsoft Purview Audit and upload the file to the investigation.
Permission (Office 365 Management APIs, Application)Used for
ActivityFeed.ReadEvery content type above
ActivityFeed.ReadDlpExchange audit records that carry DLP detail
Permission (Microsoft Graph, Application)Used for
AuditLogsQuery.Read.AllAudit records older than the last 7 to 14 days. Needs admin consent.

One optional Graph permission: Files.Read.All (Microsoft Graph, Application). The playbook content-sampling step uses it to fetch a bounded sample of a file's bytes from SharePoint or OneDrive to classify its sensitivity. Without it the step records the file as not sampled and carries on.

Microsoft Defender for Endpoint

Source: Microsoft Defender for Endpoint. Essentials tier. This connector uses two APIs with the same app registration:

  • Collection uses Microsoft Graph: alerts from /security/alerts_v2. The connection test reads the same endpoint.
  • Device lookups and response actions use the Defender for Endpoint API at api.securitycenter.microsoft.com, with a second token scoped to https://api.securitycenter.microsoft.com/.default: /machines to find a device by name or IP address, then the action endpoints below.
PermissionAPIUsed for
SecurityAlert.Read.All, SecurityEvents.Read.AllMicrosoft GraphAlerts (collection and connection test)
Machine.Read.AllWindowsDefenderATPFinding the device behind a hostname before any action
AdvancedQuery.Read.AllWindowsDefenderATPNot used. The connector lists it for advanced hunting, but nothing calls advanced hunting and device collection through Graph is skipped. Do not grant it.
Machine.ScanWindowsDefenderATPScan Endpoint (/machines/<id>/runAntiVirusScan)
Machine.CollectForensicsWindowsDefenderATPCollect Forensics (/machines/<id>/collectInvestigationPackage)
Machine.IsolateWindowsDefenderATPIsolate Device (/machines/<id>/isolate) and Lift Containment (/machines/<id>/unisolate)
Machine.StopAndQuarantineWindowsDefenderATPQuarantine File (/machines/<id>/StopAndQuarantineFile)
Ti.ReadWrite (or Ti.ReadWrite.All)WindowsDefenderATPBlock IP, Block Domain, Unblock IP, Unblock Domain, through custom indicators (POST and DELETE /indicators)
Machine.LiveResponseWindowsDefenderATPOptional. Playbook content sampling pulls a bounded sample of a file through a live response session. Without it the file is recorded as not sampled.

Microsoft Defender for Identity

The connector reads identity alerts from Microsoft Graph /security/alerts_v2 filtered to serviceSource eq 'microsoftDefenderForIdentity', and asks for SecurityAlert.Read.All and SecurityEvents.Read.All (Microsoft Graph, Application). The same two permissions already cover it if you set up Defender for Endpoint. Add it on the Sources page as Microsoft Defender for Identity with the tenant ID, client ID and client secret of this app registration. Test Connection reads one alert. Its alerts become detections when analysis runs, the same as Defender for Endpoint alerts.

SharePoint and OneDrive audit

A dedicated SharePoint audit connector reads sites and drives through Microsoft Graph (/sites, /sites/<id>/drives, drive items) and asks for Sites.Read.All and AuditLog.Read.All. It is not offered as a source in the current release. SharePoint and OneDrive file activity is collected today by the Microsoft 365 connector's Audit.SharePoint content type.

Microsoft Purview

Source: Microsoft Purview. Enterprise tier. Fields: Tenant ID, Client ID, Client Secret. Token scope https://graph.microsoft.com/.default.

  • DLP alerts: /security/alerts_v2 filtered to alerts whose category contains DataLossPrevention. Permission: SecurityAlert.Read.All.
  • The connector records InformationProtectionPolicy.Read for sensitivity label events.
  • Access review findings: /identityGovernance/accessReviews/definitions. The connector does not record a permission for this call. Microsoft documents AccessReview.Read.All for it; confirm in your tenant that this is what the call needs before granting it.

Permission checklist

If you set up everything, the app registration ends up with these Application permissions:

  • Microsoft Graph: AuditLog.Read.All, AuditLogsQuery.Read.All, Directory.Read.All, IdentityRiskEvent.Read.All, User.Read.All, SecurityAlert.Read.All, SecurityEvents.Read.All; for response actions User.ReadWrite.All, UserAuthenticationMethod.ReadWrite.All, Application.ReadWrite.All; optional Files.Read.All, InformationProtectionPolicy.Read, AccessReview.Read.All (confirm in your tenant).
  • Office 365 Management APIs: ActivityFeed.Read, ActivityFeed.ReadDlp.
  • WindowsDefenderATP: Machine.Read.All; for response actions Machine.Isolate, Machine.StopAndQuarantine, Machine.Scan, Machine.CollectForensics, Ti.ReadWrite; optional Machine.LiveResponse. Not AdvancedQuery.Read.All: the connector never uses it.
  • Then Grant admin consent once.

Grant only what you will use. A read-only deployment needs none of the write permissions; a response action that needs one can still be queued and approved, and fails with a permission error when it is executed.

Next