How Shuffle reads Defender alerts and runs response actions
The Shuffle Microsoft 365 Defender app connects over OAuth2 using an Azure app registration with application permissions, and it needs tenant_id, client_id and client_secret to do so. Shuffle does not decide what the app may read or change. The app registration in Microsoft Entra ID does, through the permissions you grant to it and the admin consent a tenant administrator gives. Treat the registration as the access boundary and the Shuffle app as the client that uses whatever that boundary allows.
The work divides into three parts. The Entra ID registration holds identity, secret and permission scope. The Shuffle app, configured in the workflow, holds the credential reference and the actions a playbook can call, such as reading alerts or running a response step. The workflow decides when those calls happen, what data moves between steps and which branch a given alert takes. Because application permissions run without a signed-in user, any playbook that can use the app can act with the full extent of those permissions, so a broad grant widens what every workflow in the tenant can do. Confirm the exact permission names and the actions the app exposes against the app's documentation before you grant anything, because the list changes with the app version.
What you need before registering the app
The app registration is only one piece of the setup. The Shuffle deployment, the Entra ID tenant, the Defender tenant, the network path and a named secret owner each have to be in place before consent and testing can succeed. Confirm each item with the people who own it before you open the Entra admin center.
A running Shuffle deployment
The Microsoft 365 Defender app runs inside your Shuffle instance, so the backend and Orborus runtime that execute it must already be up. Confirm your version is still supported by checking the configuration docs, since support for versions older than v2.1.1 ended after January 31, 2026. Note the hostname you will use, because it becomes part of the redirect URI.
Shuffle configuration docsEntra ID rights to register apps
Someone with rights to register applications and grant admin consent in the Microsoft Entra ID tenant must be available for the whole setup. Confirm whether your tenant lets ordinary users register apps, or whether a Global Administrator or Privileged Role Administrator must do it. Agree on who approves the consent request before the work starts, because consent has to be granted again each time a permission is added.
Defender alert sources in scope
List the Defender products and alert types the workflows will read, such as endpoint, identity or email alerts, and confirm they are licensed and reporting in the tenant that will be connected. Alerts you do not plan to read do not need permissions, so this list drives the permission set you request. Write the list down before registration so the permission review has a basis.
Network path to Microsoft endpoints
The Shuffle backend or the Orborus runtime that calls the Defender API must reach Microsoft's login and API endpoints over HTTPS. Confirm outbound rules and any proxy settings with your network team, and check whether the runtime sits in a segment with restricted egress. If the deployment is air-gapped or behind a proxy, the connection path needs its own review before testing.
A named client secret owner
The app authenticates with a tenant ID, client ID and client secret, so the secret needs one accountable owner. Name that person, record the expiry date, and agree how the secret is rotated and where it is stored. Shuffle encrypts saved credentials with its own modifier value, so the owner should also know that changing that value breaks existing app authentications.
Current permission names
Microsoft changes permission names and API surfaces over time, so do not copy permission strings from older guides. Open the Entra admin center in your own tenant, confirm the current application permission names for the Defender APIs you need, and record them alongside the workflows that use them. Use the Shuffle app docs as the starting reference for what the app expects.
Defender app docsConfiguring the Entra ID app and Shuffle connection in order
This sequence produces a Microsoft Entra ID app registration with narrow application permissions and admin consent, then connects it to Shuffle's Microsoft 365 Defender app so workflows can read alerts and run response actions. Each step ends with a check so a failure is caught before any playbook depends on the connection.
Register the Entra ID application
A Microsoft Entra ID administrator opens the Microsoft Entra admin center and creates a new app registration for Shuffle, using a name that identifies the Shuffle environment it serves, such as the hostname or the team that owns it. Record the directory (tenant) ID and the application (client) ID from the overview page, since Shuffle needs both. Keep one registration per Shuffle environment so that a compromised or retired environment can be cut off without affecting others. The step is complete when the app appears in the registrations list and its overview shows both IDs.
Set the self-hosted redirect URI
In the app registration's authentication settings, add a redirect URI for a self-hosted Shuffle instance in the form replacing HOSTNAME with the hostname or address that users and the Shuffle backend actually reach. Confirm the URI matches the value Shuffle expects for your deployment, because a mismatch causes the consent or token step to fail with a redirect error. Confirm with your Shuffle deployment owner whether TLS terminates in front of this address, since that changes the scheme you can use. The step is complete when the URI is saved and listed under the web platform configuration.
Add application permissions for needed Defender operations
Under API permissions, add the Microsoft Defender API permissions as application permissions, not delegated ones, because the Shuffle app authenticates as itself with no signed-in user. Start from the operations your workflows will call, such as reading alerts or updating an alert, and leave out anything a playbook does not use. Write down the list of permissions and the workflow that needs each one, so later reviews can remove permissions no workflow depends on. The step is complete when the permissions list matches that written list and shows as pending admin consent.
Create the client secret
Under certificates and secrets, create a new client secret and copy its value immediately, because Entra ID does not show it again after you leave the page. Record the expiry date in your key inventory, since an expired secret stops every workflow that uses it and the failure may appear only when a scheduled run executes. Store the value in your approved secrets store, not in a ticket or a shared document. The step is complete when the secret is listed with a value stored in the secrets location and an expiry date recorded.
Grant admin consent for the permissions
A user with sufficient rights in the tenant selects the grant admin consent action for the directory and confirms the pending permissions. Shuffle's documentation states that admin consent must be granted every time a permission is added, so repeat this step after any permission change, not only at first setup. Check that each permission now shows a granted status for the tenant. The step is complete when every permission on the list shows as granted with no pending entries.
Enter tenant_id, client_id and client_secret in Shuffle
In Shuffle, open the Microsoft 365 Defender app's authentication settings and enter the tenant_id, client_id and client_secret recorded in the earlier steps, using the field names the app expects. Save the authentication, then confirm the values were not truncated or copied with trailing spaces, since those errors are common and are hard to spot in a masked field. Shuffle encrypts the saved credential in its database, so the value is then managed there and any future rotation must be entered again. The step is complete when the authentication is saved and shows as configured without an error on the form.
Test the connection with a read action
Run a single read-only action from the Microsoft 365 Defender app in a test workflow, such as listing recent alerts, and inspect the execution result in Shuffle. A successful result returns a list of alerts, or an empty list if the tenant has none in the queried window, with no authentication or permission error. If the result shows a consent, token or permission error, return to the admin consent and permission steps before changing anything in Shuffle. The step is complete when the test returns an alert list from the tenant, and only then should response actions be added to production workflows.
How the Defender app authenticates and calls the API
The flow starts with an administrator registering an Entra ID app with application permissions and granting admin consent. The Shuffle backend stores the tenant_id, client_id and client_secret as app credentials, and the worker uses them to request a token from Microsoft's token endpoint using client credentials. The worker then calls the Defender APIs with that token. Check that the client secret stays inside Shuffle's encrypted credential store, that the redirect URI on a self-hosted install matches the documented pattern, and that each new permission triggers fresh admin consent.
Client credentials flow from the Shuffle host to Microsoft cloud, with the secret held in Shuffle.
Which Defender fields and permissions map to which Shuffle inputs
This table maps each Shuffle app input to the Entra ID or Defender value that fills it, and each planned workflow action to the application permission it needs. Read it while building the app registration, then check each permission name against the Shuffle app documentation and your tenant before you grant anything.
| Shuffle input or action | Where the value comes from | What to confirm or keep narrow |
|---|---|---|
| tenant_id | Entra ID directory (tenant) ID on the app registration overview page | Confirm it matches the tenant that owns the Defender alerts, especially in multi-tenant or MSSP setups |
| client_id | Application (client) ID on the app registration overview page | Use the ID of the single registration created for Shuffle, not a shared app used by other tools |
| client_secret | A secret created under Certificates and secrets in the app registration | Record the expiry date, store the value in Shuffle's encrypted credential store, and plan rotation before expiry |
| Redirect URI for self-hosted Shuffle | Your own hostname, entered as | Replace HOSTNAME with the host Shuffle serves from; confirm the exact path in the Shuffle app documentation |
| Admin consent | Granted by a tenant administrator from the app's API permissions page | Repeat consent every time a permission is added, as the Shuffle app docs require |
| Read alerts action | Application permission for reading Defender alerts, named in the Shuffle app docs | Confirm the exact permission name in the Shuffle docs and tenant; request only this read scope for triage |
| Update or classify alert action | Application permission for updating alerts, if the playbook changes status or classification | Add only if the playbook writes back; confirm the permission name and whether it grants more than needed |
| Hunting or advanced query action | Application permission for advanced hunting, if the playbook runs queries | Request only if the workflow needs it; review query scope and data returned |
| Device or host response action | Application permission for isolation or other device actions, if planned | Treat as high impact; confirm the permission name, scope it to needed device groups, and require approval steps |
Keeping Defender permissions narrow and secrets protected
The Defender app registration holds the most sensitive access in this integration, so its permissions, its secret and the Shuffle instance that stores that secret all need deliberate limits. The cards below cover how to scope the grant, separate read from write, plan secret rotation, restrict who can see the registration and protect the encryption key that Shuffle uses for saved credentials.
Choose application permissions deliberately
The Shuffle Microsoft 365 Defender app authenticates with application permissions rather than delegated permissions, so the app acts as itself without a signed-in user. Each permission added to the registration widens what any workflow using the app can reach. Before consent, list every permission the playbooks need, and remove any that a triage-only workflow does not call. Confirm each permission against the Defender API documentation for the operations you run.
Defender app docsGrant read permissions for triage
Enrichment and triage workflows only need to read alerts, incidents and related entities. Keep those workflows on a registration that carries read permissions alone, so a bug, a malformed loop or a compromised workflow cannot change alert status or isolate a device. Review the permission list after each new playbook is added, since a single convenient write permission can quietly apply to every workflow in the tenant.
Split read and write response registrations
Where response actions such as changing alert status or running device containment are needed, consider a second app registration that holds only those write permissions and is used only by the playbooks that act. Each registration then has its own client ID, client secret and consent record. Assign the write registration to a smaller set of workflows, and name both registrations so an audit log entry shows which one acted.
Plan client secret rotation
The client secret is the credential that lets Shuffle obtain tokens for the app, so it has an expiry date that must be planned for. Record the expiry in your calendar or ticketing system, schedule a rotation window before it, and create the new secret before deleting the old one so running workflows are not interrupted. Ask your team how the rotated value is stored and who approves the change. Confirm the maximum lifetime your tenant policy allows.
Restrict who can view the registration
Anyone who can read the app registration in Entra ID can see its configuration and, depending on tenant settings, owner and credential metadata. Limit owner and administrator roles on the registration to the small group that maintains the integration, and review that group on a schedule. Keep the client secret value out of tickets, chat and workflow comments, since anyone with the value can use the app from outside Shuffle.
Protect the Shuffle encryption modifier
Shuffle encrypts saved app credentials and API keys in OpenSearch with AES-256, using the value of SHUFFLE_ENCRYPTION_MODIFIER as the key material. Store that value in your secrets manager, restrict who can read the server configuration that holds it, and include it in your backup plan. Changing this value breaks every saved app authentication, including the Defender credentials, so treat it as a value that never changes casually.
Why every new permission means another admin consent
Every time a permission is added to the Shuffle app registration, an administrator has to grant admin consent again. That makes a permission change an approval event, not a quiet edit in the Entra ID portal. The Shuffle Microsoft 365 Defender app uses application permissions, which act without a signed-in user, so the tenant administrator is effectively approving what the platform may do across the tenant. Treat each new scope as a request that needs a named approver, a stated reason and a record of the decision before anyone clicks grant. Confirm with your identity team whether your tenant uses admin consent workflows, since that changes who can approve and how the request is routed.
Batch permission requests so consent happens once per change window rather than once per workflow idea. Start by listing every Defender action your playbooks need, such as reading alerts or updating incidents, and map each to the least permission that covers it. Then submit one change request that lists the current permissions, the added permissions, the workflows that depend on them and the rollback step, which is removing the permission and re-consenting if needed. Check the exact permission names against the Shuffle Microsoft 365 Defender app documentation and the Microsoft Graph or Defender API reference at the time of the change, because names and scopes can differ between API surfaces.
Keep a consent log that records who granted consent, when, which permissions were added and which ticket approved them. Most tenants already keep audit records of consent events in Entra ID, so pair those entries with your change ticket instead of relying on memory. Schedule the change window for workflows that depend on a new permission, and test the workflow in a non-production Shuffle environment first, using a separate app registration if your policy allows it. Until consent is granted, a playbook that calls the new action will fail, so tell the workflow owners the window and the expected failure mode before the change lands.
Common Defender connection failures and fixes
This table pairs each common failure when Shuffle connects to Microsoft 365 Defender with its likely cause and fix. Use it as a first-pass checklist, then confirm the exact error text against your own Shuffle backend and worker logs before changing anything in Entra ID.
| Failure | Likely cause | Fix |
|---|---|---|
| Login or authentication error after redirect | Redirect URI in the app registration does not exactly match the self-hosted address, such as a different scheme, port or path | Set the redirect URI to with your real hostname, then retry the connection |
| Permission errors after adding a permission | Admin consent was not granted again after the permission change | Grant admin consent in the Entra ID portal for the registration, then rerun the workflow action |
| Authentication fails after it previously worked | The client secret has expired or was rotated without updating the value saved in Shuffle | Create a new client secret in the registration, update the saved app authentication in Shuffle, and note the new expiry date |
| Tenant not found or token request rejected | tenant_id was copied from another directory, subscription or app registration | Copy the directory (tenant) ID from the registration that holds the client_id and client_secret, and compare it with the value in Shuffle |
| Unauthorized client or invalid client error | client_id belongs to a different registration than the secret, or the secret is from another app | Match the application (client) ID and the secret to the same registration, then re-enter both |
| Redirect or callback fails only on one hostname | Shuffle is reached through a different hostname, proxy or DNS name than the one registered | Register the hostname users and the server actually use, and confirm the proxy forwards the callback path |
| Actions time out or cannot reach Microsoft | The Orborus worker host or container network blocks outbound HTTPS to Microsoft login and Defender API endpoints | Allow outbound access from the worker to the Microsoft login and Defender endpoints through your firewall or proxy, then test from the worker host |
| Errors appear only in scheduled or triggered runs | The app authentication is tied to a credential or permission scope that the run context does not use | Compare the failing run's logs with a manual run, and confirm the same app authentication is selected in the workflow |
Questions buyers ask before connecting Defender to Shuffle
How long does it take to connect Microsoft 365 Defender to Shuffle?
The duration depends on your tenant, not on a fixed figure we can give you here. The main drivers are how quickly your identity team approves an Entra ID app registration, how many Defender actions your playbooks need (each added permission needs its own admin consent), whether Shuffle runs on your own servers with a reachable redirect URI, and how much testing your change process requires. Ask any partner for a written scope that lists the permissions, the workflows and the test steps, then set the timeline from that list.
Can an internal admin connect Defender to Shuffle without a partner?
Yes, if your team has someone who can register an app in Entra ID, grant admin consent and configure Shuffle's Microsoft 365 Defender app. The app uses OAuth2 with application permissions and needs a tenant ID, client ID and client secret. The harder part is deciding which permissions are required and proving that they stay narrow. A partner is useful when you want that decision reviewed, when your team lacks Shuffle workflow experience, or when the setup must be documented for an audit.
What does the security team and the identity team need to provide?
The identity team creates and owns the Entra ID app registration, approves the application permissions and grants admin consent. The security team defines which Defender actions the playbooks may take, reviews who can read or change the workflows and holds the client secret in an approved store. Both teams should agree on the redirect URI for your self-hosted Shuffle, which follows the pattern ` in the Shuffle Microsoft 365 Defender app docs. Confirm the exact steps against the Shuffle Microsoft 365 Defender app docs before you apply them to production.
Which parts of the Defender connection are one-time and which recur?
Registration, the first admin consent and the first workflow build are one-time work. Recurring costs include rotating the client secret before it expires, reviewing permissions whenever a new one is added (admin consent must be granted again each time), reviewing the app's access logs and retesting workflows after Shuffle or app updates. Ask for each of these as a separate line in a quote so you can see which items will repeat every year and who owns them after handover.
How does Shuffle's app-run licensing apply to Defender actions?
Shuffle prices its licensing on app runs, which are actions that actually execute in a workflow. Triggers and skipped actions are not counted, and users, apps and workflows are unlimited according to Shuffle's pricing article. Each Defender action a playbook runs therefore counts as an app run. Estimate your volume from the number of alerts your playbooks will act on, not from the number of workflows you build. Confirm the current terms with Shuffle before you commit, because licensing can change.
Why does the Defender app need application permissions instead of delegated ones?
The Shuffle Microsoft 365 Defender app uses application permissions, so it acts as the app itself rather than as a signed-in user. That lets scheduled or alert-driven workflows run without a person signing in. The trade-off is that application permissions apply across the tenant, so a broad grant gives the app wide reach. Limit each permission to the Defender actions your playbooks need, and document why each one exists.
What breaks most often when the connection is set up?
The most common failures are a redirect URI that does not match the hostname Shuffle uses, a permission added without fresh admin consent, a client secret that has expired, and a tenant ID copied from the wrong directory. Check the redirect URI first, because it is set in the app registration and must match your self-hosted Shuffle address exactly. Then confirm consent for every permission and test with a read-only action before enabling any response action.
Does DeployOpen issue a compliance certification for this connection?
No. DeployOpen plans, implements, documents and tests self-hosted platforms and prepares the systems, controls and evidence that compliance assessments need. Independent auditors and certification bodies issue audit reports, attestations and certifications. For a regulated environment, ask your auditor which evidence they expect for app registrations, admin consent records, secret rotation and permission reviews, and build the connection so that evidence can be produced.
How DeployOpen scopes and tests this integration
DeployOpen starts with a written scope before any tenant change is made. The scope names each Defender action the Shuffle workflows need, such as reading alerts or updating incidents, and maps each one to the application permission that enables it. Because the Shuffle Microsoft 365 Defender app uses application permissions instead of delegated permissions, the scope also records which tenant, which app registration and which client secret owner are involved, along with who holds the Entra ID roles needed to grant admin consent. The written scope is the reference point for every later permission decision, so changes to it go through the same written process.
Build work happens in the client's own Shuffle environment, and the redirect URI for a self-hosted instance (`) is configured and checked against the hostname the browser actually uses. Each permission is added in the app registration only as the workflows require it, and admin consent is granted again each time one is added. Client secrets are stored as saved app credentials in Shuffle, so the encryption modifier and its backup are confirmed before any credential is saved. Test workflows then run against a non-production tenant or a scoped test group where the client allows it, and each action is checked for the result it should produce and for the permission it should not need.
Testing compares the granted permissions with what each workflow actually calls. A permission that no workflow uses is removed, and a permission that an action needs but the scope did not list is raised as a change request rather than added quietly. Where a client wants an independent check, DeployOpen can run security testing against the configured Shuffle instance and its app credentials. After handover, Defender permissions are reviewed through a retainer whenever workflows change, new Defender features are adopted or staff roles shift. Clients should confirm who reviews those changes and how often, since that cadence is set in the retainer rather than assumed.
How DeployOpen delivers Shuffle and Microsoft 365 Defender integrations
DeployOpen plans, builds, tests and documents Microsoft 365 Defender alert ingestion and response actions in Shuffle inside your own infrastructure. The work starts with a written scope covering the Entra ID app registration, permissions, workflows and handover, so your security and identity teams can review each decision before anything is connected.
How we scope
- We agree in writing which Defender alert sources and response actions the Shuffle integration covers.
- We define the Entra ID app registration, application permissions and tenant boundaries your identity team must approve.
- We confirm your self-hosted Shuffle hostname and the redirect URI and admin consent steps your administrators will complete.
How we build
- We configure the Microsoft 365 Defender app with tenant_id, client_id and client_secret stored in Shuffle's encrypted credential store.
- We build alert intake and response workflows, testing each action against a non-production tenant before production use.
- We review granted permissions against each workflow step so that every action has only the access it needs.
How we hand over
- We document the app registration, redirect URI, consent record, permission list and the reason for each permission.
- We deliver runbooks covering client secret rotation, the consent step after any permission change and failure handling.
- We walk your administrators through the workflows and the tests used to verify them, so your team can maintain them.
How we support
- Engagements are fixed-scope, and changes to permissions or workflows are handled as written scope changes.
- Ongoing support, upgrades of Shuffle and the Defender app, and continuous testing are available as a retainer.
- We recommend confirming your Shuffle version, Microsoft 365 licensing and client secret expiry date with your team before the engagement begins.

