Assign permissions by step
Key takeaway
A drafting service needs only relevant case data. It need not change orders or send mail.
Lessons in this path
How it works
List which application can read, draft or approve each step. Limit the mailbox, document group and target system. Review permissions for agents connected to several tools.
Worked example
An AI module reads verified order status and suggests a reply. The existing service application controls who approves it.
How do you build a permission matrix step by step?
The principle of least privilege means every component gets only the access its step requires. For AI automations this matters especially, because unexpected input can steer a language model towards unexpected actions. Whatever a component is technically unable to do, manipulated input cannot trigger either.
- Break the workflow into single steps: read, analyse, create draft, approve, execute.
- For each step, name the identity that performs it: person, technical user, service account or agent.
- For each identity, describe the resource narrowly: which mailbox, folder, table and fields.
- Define the type of right: read, write draft, change, send, delete.
- Compare with IT which rights are actually granted and clean up deviations.
- Schedule regular reviews, as a rough orientation every six months and after each extension.
What does a permission matrix look like in practice?
The matrix below shows a typical workflow across a service mailbox, ERP and file storage. It can be maintained in a spreadsheet and is immediately readable for reviews, for example by the data protection officer or an IT service provider.
| Step | Identity | Resource | Right | Not allowed |
|---|---|---|---|---|
| Read email | Automation service account | Mailbox service@ | Read | Other mailboxes, sending |
| Look up order | Technical ERP user | Order status view | Read | Change prices, create orders |
| Create draft | Automation service account | Drafts folder | Write | Send, delete |
| Approve and send | Case handler | Mailbox service@ | Send | Delegating rights to the service account |
| Store attachment | Storage service account | Customer correspondence folder | Write | Reading other folders |
A separate account per step takes more effort but makes visible which part of an automation did what.
What changes with AI agents that use several tools?
An AI agent is a system in which the language model itself decides which tool to call next, for example “search mail”, “read order” or “save file”. Such tools are often connected through standards such as the Model Context Protocol (MCP) or through integration platforms. That widens the surface: the agent holds the sum of all its tools' rights.
So review not only the agent but each connected tool individually. A “manage files” tool that can read, write and delete should be replaced by a read-only tool for a pure research task. Actions with external effect, meaning sending, ordering, booking or deleting, belong behind a human confirmation that the agent cannot skip itself.
Going deeper: identities, secrets and privilege creep
Technical access is secured with secrets, meaning API keys, certificates or client secrets. Store them in a dedicated vault, such as Azure Key Vault, AWS Secrets Manager, HashiCorp Vault or your integration platform's secret store, never in workflow text or a shared spreadsheet. Prefer short-lived tokens and certificates over permanent keys and set an expiry date.
The most common weakness in mid-sized companies is not a faulty model but privilege creep: a broad right is granted once for a test and never revoked. Frameworks such as the German BSI IT-Grundschutz or the NIST Cybersecurity Framework treat access control as a core element; reviewing the permission matrix every six months is a simple, practical way to implement it.
Example: an agent that was allowed too much
A fictional engineering firm with 40 employees tests an AI agent that reads project inquiries and retrieves matching reference projects from file storage. For the test, storage access was set up with write rights on the entire drive because that was faster.
During the permission review before go-live, it turns out the agent could also read HR folders and rename files. The firm creates a new service account with read access to the reference folder only, revokes the test account and records both in the matrix. Functionality is unchanged, while the potential impact of an error is much smaller.
Common mistakes
- Running automations under an individual employee's personal account.
- Carrying test permissions into production without reviewing them.
- Sharing API keys inside the workflow or in chat messages.
- Evaluating only the model of an agent, not the rights of its tools.
Frequently asked questions
Who should maintain the permission matrix?
The person who owns the workflow from a business perspective, together with IT. The business knows which data is needed; IT knows which rights are technically granted. One person alone usually misses one side.
Is it enough to tell the model in the prompt what not to do?
No. Prompt instructions influence behaviour but are not a security boundary. Only what the application and permission settings technically enforce is binding.
Try it yourself
Create a table for three actions and verify that each can access only its required source.
Check your result
Draft and execution permissions are intentionally separated.