Set an AI assistant’s service account permissions one task at a time. Write down which records it needs, which fields it can return, and which operation it may perform. Give lookups a read-only identity. If the workflow requires a change to an operational record, authorize that change separately and run it under a different identity. Put a person’s name beside each grant so someone can explain, review, and revoke it.
Illustrative scenario. A dispatch team wants an assistant to explain why a shipment is in its exception queue. The assistant reads the case and the latest carrier event, then proposes an internal note. Dispatchers can ask for an explanation on cases assigned to their depot. If a dispatcher approves a note, a separate service appends it to the case. The workflow needs no authority to change delivery status, reroute a shipment, or send a customer message.
Map the task to records and fields
Start with the question a dispatcher needs answered. To explain a delay, the assistant needs the case reference, assigned depot, exception category, carrier event code, and the time of that event. For this task, leave names, addresses, attachments, and full carrier payloads out of the lookup. If the carrier event comes from a second system, resolve its shipment ID from the authorized case record. Check the dispatcher’s current depot membership and case assignment before returning any case data.
For every lookup, record the source, operation, allowed records, allowed fields, caller, destination, and purpose. Start with the case lookup and the related carrier event as separate grants. The case owner can then narrow or revoke case access, while the carrier integration owner can change which event fields are available. NIST SP 800-207 describes access to individual resources and recommends granting the least privilege needed for the task. Use that principle to decide what each lookup actually needs. NIST SP 800-207, §2.1 · Insonl, AI Workflow Audit
Give lookup and write operations separate access
Check caller scope before retrieving data
A service account identifies the workload calling the source system. For an interactive request, the lookup also needs verified context for the person asking. Use delegated access where the source can enforce the dispatcher’s permissions directly. With an application-owned identity, have the backend verify the session and check current case access before it fetches and returns fields. Derive the depot scope from trusted application records. The model can propose a case reference, and the backend resolves it and applies the policy.
Use source-side permissions to restrict the lookup identity to approved APIs or protected views where available. Some connectors grant access to a whole object when the task needs a few fields. In that case, keep the upstream credential in a restricted backend and expose a specific lookup operation with record checks and a fixed response schema. Give the assistant access only to that operation. If the backend cannot enforce the required record and field limits, keep that source out of the workflow until it can.
A scheduled queue digest needs its own scope. Give the job an explicit list of eligible depots and define who can receive each digest. A job that reads cases from several depots can produce a separate digest for each depot. Check each recipient’s current access before delivery, including access to any linked case details. Give the digest grant its own owner because its record scope and delivery rules differ from a dispatcher’s individual lookup.
Carry the same restrictions into copies
Apply permission checks to cached records, search results, and stored summaries before returning them to a user or passing them to the model. If a case moves to another depot, an answer saved under the old assignment still contains case data. Recheck current access just before delivering an answer, and invalidate cached entries when the scope they depend on changes. Restrict who can inspect diagnostic traces and record operational identifiers and decisions in place of full payloads where those payloads are unnecessary. Insonl, Review Sensitive Customer Screenshots Before They Reach an AI Tool
Treat notes and carrier messages as data. NIST’s Generative AI Profile identifies indirect prompt injection as a risk when a system retrieves content containing instructions. A carrier note can inform the assistant’s explanation. Any proposed action still goes through the application’s authorization checks, using the caller and resource scope the application established. NIST AI 600-1, §2.9 · Insonl, Generative AI
Authorize the exact change a dispatcher approves
Show the dispatcher the case and exact note text in the approval screen. Store the approved content, case ID, approver identity, and approval expiry. The write service accepts that approval record, checks the dispatcher’s current authority, and confirms that the case still accepts notes. If someone edits the note after approval, send it back for approval. If the case changes depots before execution, check the approver against the new assignment and stop the write if access has been lost. Where the source supports conditional writes, bind the append to the case version checked by the write service. If the version has changed, recheck access and case state before trying again.
Give the write identity only the operation needed to append an internal note. Keep its credentials with the service that validates and executes approvals. The lookup service keeps its read-only credential, and the model can prepare text for review without receiving either credential. Use a durable operation ID for the approved append. After a timeout, reconcile the outcome before retrying if the destination cannot deduplicate the operation. Insonl, How to Prevent ERP Double Posting When a Request Retries
Put an owner and a revocation test beside each grant
Use a grant register to connect the workflow decision to deployed permissions. The roles in the illustrative register stand in for people. Before rollout, put a named person and backup on each row and link it to the deployed policy. Record when access expires or must be reviewed and who can remove it. The grant owner decides whether the workflow still needs the access. The platform owner applies and verifies the change.
| Task | Resource and allowed operation | Grant owner |
|---|---|---|
| Explain a shipment exception | Lookup identity reads the case reference, depot, and exception category for a case the dispatcher can access. | Dispatch case owner |
| Check the latest carrier event | Lookup identity reads the event code and timestamp for the shipment resolved from that authorized case. | Carrier integration owner |
| Save an approved internal note | Write identity appends the approved text to the specified case after the backend validates the approval and current access. | Dispatch workflow owner |
Test the deployed grants with the identities the workflow will use. An assigned dispatcher should receive the allowed fields. A dispatcher outside that depot should receive no case data, including from a saved answer. Test a case reassignment between lookup and delivery, a write request with expired approval, and a request to change delivery status through the note service. Verify the backend decision, the data returned, and the destination record. A friendly message in the interface tells you little about whether the underlying call succeeded.
Record the requesting user or job, workload identity, resource reference, operation, allow or deny decision, and policy version. Include the approval reference and write outcome when a change is attempted. Drill the revocation procedure by removing the note grant, then confirm that a pending note cannot execute and authorized lookups still work. Repeat the checks when connector scopes, case assignment rules, or approval behavior change. The owner can use the register and logs to narrow a grant whose original purpose no longer applies.
Sources
- NIST SP 800-207, Zero Trust Architecture
- NIST AI 600-1, Generative Artificial Intelligence Profile
- Insonl, AI Workflow Audit: What It Covers and How to Run One
- Insonl, Review Sensitive Customer Screenshots Before They Reach an AI Tool
- Insonl, How to Prevent ERP Double Posting When a Request Retries
- Insonl, Generative AI
- Insonl, Free AI workflow audit
Request an audit for one workflow
Bring one task, the records it needs to read, and any change someone would have to approve. The audit is free. Insonl charges for follow-on work. Request an AI workflow audit from Insonl