jacksonyang.dev AboutWorksInsightsContact 中文

AI agent permissions: don’t let it inherit everything you can do

Enterprise AI · 15 November 2026 · Jackson Yang

The most common mistake in managing AI agent permissions is letting the agent work under your account. Whatever you can read, it can read. Whatever you can change, it can change. It just doesn’t hesitate the way you would.

When an agent needs to reach a real system, the quickest route is usually to hand it a credential that already exists: an employee’s own login, a service account with broad rights, or an API key someone created during development and never set to expire. The demo goes smoothly, because every door opens. That is exactly the problem. The agent can do far more than the task needs.

This is not a hypothetical worry. OWASP lists it among the top ten risks for LLM applications as Excessive Agency: too much functionality, too many permissions, too much autonomy. Agents read email, web pages and documents, and any carefully crafted passage in them can steer the agent toward something you never asked for. At that point, what actually stops it is not the line in the prompt that says “be careful”. It is the agent never having held the key in the first place.

I wrote about the governance gap in “Agents can already act. Governance has not caught up”, and permissions were one of the five sticking points in “Why enterprise AI gets stuck at the PoC: five reasons”. This piece takes permissions apart into five things to actually do, the practical core of agent security.

Five permission checks before an AI agent reaches a real system A top-to-bottom path from what the agent wants to do to the real system. Five checks sit in between. The left column is what to do and the right column is the common shortcut: one, identity: the agent has its own account, instead of a shared employee login; two, scope: only the data and actions the task needs, instead of full admin rights; three, time: short-lived credentials that expire, instead of an API key that never does; four, approval: a person confirms irreversible actions, instead of sending everything automatically; five, audit: every step traceable and revocable, instead of keeping only the chat log. What the agent wants to do DO THISCOMMON SHORTCUT 1 Identity: its own accountA shared employee login 2 Scope: only what the task needsFull admin rights 3 Time: credentials that expireA key that never expires 4 Approval: people confirm the irreversibleFully automatic sends 5 Audit: traceable and revocableOnly the chat log The real system Five permission checks before an AI agent reaches a real system A top-to-bottom path from what the agent wants to do to the real system, with five checks in between: one, identity: its own account; two, scope: only what the task needs; three, time: credentials that expire; four, approval: a person confirms; five, audit: traceable and revocable. What the agent wants 1 Identity: its own account 2 Scope: only what it needs 3 Time: it expires 4 Approval: a person confirms 5 Audit: traceable, revocable The real system
Diagram: five permission checks an agent should pass before it touches a real system.

Identity: the agent gets its own account, not yours

Every other control depends on the system being able to tell that the agent did something. If the agent uses an employee’s own login, the logs say that person did it. If several agents share one service account, nobody can tell which one it was when something goes wrong.

Every agent that takes actions should have its own identity that can be switched off on its own, plus a named owner. That owner does not have to be the person who wrote the code. It should be the business lead who can answer “why does it need this permission?” Any permission nobody can justify is one to take back.

It also helps to separate two situations. Either the agent acts on behalf of a particular user, or it runs a job on its own. In the first case its rights should never exceed that user’s current rights, and ideally they should be narrower. In the second it gets a dedicated service account scoped to that one job.

Scope: least privilege, down to data and actions

Least privilege is not a new idea, but applied to agents it has to be cut finer. Controlling whether the agent can call a given API is not enough. You also need to limit which data it can touch and which actions it can take. Reading, creating, changing, deleting, sending externally and approving are best granted separately.

A useful default is that write access starts switched off. The agent goes live with read access only, and each write action is opened one at a time, with the reason written down. Tools work the same way. Rather than one general-purpose tool that runs any SQL or any shell command, give it a few single-purpose ones, such as “look up order status” or “draft a ticket”. The narrower the tool, the easier its inputs are to check and the easier it is to understand afterwards what it did.

One point is easy to miss: authorisation has to be checked by each system, not only by the layer that orchestrates the agent. Downstream systems should confirm for themselves that a request is allowed. Otherwise one loosely built integration in the middle is enough to bypass every limit upstream.

Time: short-lived credentials that expire

The real danger of a long-lived key is that people forget it exists. The project ends, the PoC is shut down, the person responsible moves to another team, and the key is still there with all its rights.

A better pattern is for the agent to hold no standing high privilege at all. It receives a short-lived, narrowly scoped credential when it runs a specific task, and that credential expires when the task ends. If it needs more, it goes through a request or an approval, rather than being given everything up front.

This is the same kind of risk I described in “Redundancy lives on the architecture diagram, but outages happen in the temporary state”: whatever is opened “temporarily” is the thing most likely to become permanent. Decide when a permission expires at the moment you grant it. Don’t count on someone remembering to take it back.

Approval: a person confirms the irreversible

Not every action needs a human sign-off. If people have to confirm every step, they soon start clicking through without reading, and approval stops meaning anything.

What belongs with a person is the kind of action that is hard to undo: deleting data, issuing refunds or payments, emailing external customers, changing permissions, changing production settings. These can be split into two stages. The agent prepares a draft and its impact, such as the recipients, the amount and a before-and-after diff. A person reviews it and confirms, and only then does the agent receive permission to carry out that one action.

The same agent should never be able to both create and approve the same thing. Separation of duties applies to people, and it should apply even more strictly to agents.

Audit: every step traceable, and revocable

Afterwards you need to be able to answer: which agent, on whose behalf, under what authority, using which data and tools, did what, and who approved it. A final chat transcript cannot answer those questions.

Record the requests that were blocked as well. An agent trying something and being refused may be a sign of prompt injection, or a sign that the permission design does not match the real work. Either way, someone should look.

Finally, rehearse how to stop it: disable the identity, revoke the credentials, invalidate any tokens already issued. A kill switch nobody has tested rarely works the way you expect when you need it.

None of this needs a new product to get started. Begin with a table: for each agent, its purpose, owner, the data it can touch, the actions it can take, how long its credentials last, which actions need a person, and how often it is reviewed. Whichever cell you cannot fill in is your biggest risk right now.

Agents will keep getting more capable, and that is a good thing. But how much an agent can do should be your decision, not a side effect of whichever key happened to be in its hand.