Course contents · Bound the workflow
- 1. Choose a playbook family and a bounded response contractFree
- 2. Separate the author, invoker and connector identitiesFree
- 3. Build and manually verify an evidence-only playbookFree account
- 4. Scope an update trigger without creating a feedback loopPremium
- 5. Handle duplicate requests and ambiguous comment outcomesPremium
- 6. Bind response approval to a current action proposalPremium
- 7. Trace rule health through workflow execution to the effectPremium
- 8. Recover the workflow and hand over a verifiable response servicePremium
Separate the author, invoker and connector identities
Permission to edit a playbook, permission for Sentinel to invoke it and permission for its connector to change an incident are different grants. Scope each principal independently and test the denied operation as well as the allowed one.
25 MIN
By AISecurityInterviews · Updated
TL;DR: Permission to edit a playbook, permission for Sentinel to invoke it and permission for its connector to change an incident are different grants. Scope each principal independently and test the denied operation as well as the allowed one.
Where you are. Step 2 of 8: bound the workflow.
Reference and lab. Microsoft Sentinel in the Microsoft Defender portal and Consumption Azure Logic Apps using the Microsoft Sentinel incident connector, official documentation checked 18 November 2026. This is the existing connector family, not generated playbooks, Defender SOC connector workflows or preview Simple Flows. Product procedures and KQL are documentation-checked, not tenant-executed. Python exercises run offline with fictional Juniper Ledger records. Optional product work requires an authorized, dedicated lab workspace, approved identities and a cost/retention limit. No production incident, email, ticket or endpoint action is required.
Draw the permission edges before assigning a role
Juniper’s workflow author can edit a Logic App, but its first manual run fails to read the incident. Adding Contributor everywhere would hide the missing edge while granting unnecessary authority. Identify the human author, the human operator, the Microsoft Sentinel service account that invokes the playbook and the workflow’s connector identity. The last identity performs the incident read or write; it does not inherit the author’s access merely because the author saved the workflow.
Use the official playbook prerequisites and connector authentication guide together. For this connector, Microsoft Sentinel Reader supports triggers and read actions. Microsoft Sentinel Responder supports the incident write actions used later. Microsoft Sentinel Contributor is needed for authoring automation rules; it is not the default grant for every connector.
| Principal | Lab responsibility | Grant to review |
|---|---|---|
| Workflow author | Create and edit the Consumption Logic App | Logic App Contributor at the approved playbook scope |
| Automation-rule author | Attach the reviewed playbook | Microsoft Sentinel Contributor on the lab workspace |
| Human operator | Access the incident and invoke the existing playbook | Microsoft Sentinel Responder plus applicable playbook-run permissions |
| Sentinel service account | Invoke playbooks in the dedicated resource group | Microsoft Sentinel Automation Contributor |
| Connector identity | Read, then optionally add a comment to the lab incident | Reader first; separately approved Responder for the write revision |
The current run guide also lists Logic App Contributor requirements for manual incident execution and Sentinel Playbook Operator for running existing playbooks. Record the exact task and successful/denied operations in the tenant rather than treating one human role as a universal replacement for the service grant. A role-assignment administrator may need Owner or User Access Administrator authority to create the grants. That temporary administrative task does not justify leaving every learner as Owner.
- 1
1 · AUTHOR → WORKFLOW
- May edit the definition
- Does not lend personal access to the connector
- 2
2 · SENTINEL → PLAYBOOK
- Service invocation grant on a dedicated group
- Can invoke the playbooks within that scope
- 3
3 · CONNECTOR → INCIDENT
- Reader for observation; approved Responder for comment
- Inspect inherited grants and actual connection identity
Configure the workflow identity deliberately
For the lab, use a system-assigned managed identity if the tenant permits the connector’s documented authentication option. The authentication reference still labels that option preview, checked November 2026. If organizational policy excludes it, use an approved service-principal connection with the same narrow resource permissions and a credential lifecycle; do not silently fall back to the author’s personal OAuth connection.
Enable the Logic App’s system-assigned identity and record its principal object ID. At the lab workspace’s Access control (IAM), assign Microsoft Sentinel Reader to that identity. In the designer, create or select the Microsoft Sentinel API connection that explicitly uses the system-assigned identity. Reopening an existing connection is not proof that it uses the new identity. Inspect its authentication method and the resource actually referenced by each action.
The official connection figure shows the connection name and identity selector. Read those two controls; it is a historical documentation image, not a screenshot of Juniper’s tenant. Naming a connection “read-only” does not enforce its permissions. Access comes from the assigned principal and its effective resource grants, including inherited grants.
For Sentinel invocation, open the workspace’s playbook permissions settings and grant the Sentinel service account access only to the dedicated lab playbook resource group. The documentation states that this grant allows invocation of playbooks in that group. Keeping unrelated response workflows in the same group therefore expands the trust boundary. It does not grant the connector access to every incident or external system.
Prove the missing edge with a controlled test
In the read-only revision, run the incident-reading workflow on the approved lab incident. Capture the resource identity and a successful read. Before adding any write role, test the planned harmless comment action on that same lab incident under the connector identity; it should fail authorization. Only perform this negative test where that exact attempted write is approved. If it succeeds, inspect inherited assignments and the action’s selected connection before continuing.
Do not “fix” a failed trigger by expanding the connector’s incident role. Likewise, a successful trigger does not repair a forbidden connector read. The offline fixture below identifies the failed authorization edge; it is not a simulation of Azure RBAC evaluation.
grants = {
"author_can_edit": True,
"sentinel_can_invoke": True,
"connector_can_read": False,
"connector_can_write": False,
}
required = ["sentinel_can_invoke", "connector_can_read"]
print([edge for edge in required if not grants[edge]])
# The expected missing edge is connector_can_read.
assert [edge for edge in required if not grants[edge]] == [
"connector_can_read"
]
Account for replacement and cleanup
Recreating a Logic App can create a different system-assigned principal. An exported workflow definition is not a backup of that identity or its effective permissions. Keep the principal ID, role scope, API connection resource ID and assignment owner in the recovery record. Confirm new grants through an allowed operation and a denied operation after replacement.
Remove only temporary grants created for the lab after the owner confirms no other workflow depends on them. A shared API connection can be referenced by multiple actions or workflows. Inventory those references before changing or removing it. Never delete a service principal or resource group simply because a tutorial’s final step says “cleanup.”
Do this before moving on
Create a permission map for the four principals and write a test for each edge. Explain why an invocation success followed by a forbidden read does not justify a broader Sentinel service-account grant.
Worked feedback: The connector-to-workspace edge is the failed read boundary. Repair the intended identity or its scoped read grant, then repeat the allowed and denied tests; preserve the separate invocation grant.
Go deeper
- Cloud IAM evaluation explains how effective grants can exceed the role assignment you just added.
- Workload identity separates service identity from a human author’s session.
- Authentication versus authorization helps classify a missing identity separately from a denied operation.
Key takeaways
- Editing, invoking and acting are separate authorization edges.
- Inspect the action’s actual API connection and effective grants.
- A replaced system-assigned identity requires a new permission review.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1The trigger succeeds but Get incident returns forbidden. Which edge should be investigated first?
2Why isolate lab playbooks in their own resource group?
Sign in to track which lessons you have finished.