You wouldn’t hand an intern the keys to the office on their first day. So why does an AI agent start out with full access to your CRM? Because that is what usually happens: most AI agents are over-permissioned, with far more access than their task requires. Nobody means any harm by it. Giving the agent access to everything is simply the fastest way to get it running.
This article looks at why it happens, what can go wrong, and how to apply least privilege without making the agent less useful.
What does it mean for an AI agent to be over-permissioned?
An AI assistant answers questions. An AI agent does more: it reads your ERP, writes to your CRM, sends emails. To do that it needs permissions on those systems, just as a person would.
It is over-permissioned when it can do more than its task requires. An agent that only has to check order status, but can also change orders. One that drafts emails, but can also send them. One that looks for duplicate contacts, but can delete any record.
While everything goes well, you can’t tell the difference. You find out the day the agent gets something wrong.
Why are most AI agents over-permissioned? Four common causes
1. It is the fastest setup. Connecting an agent with an admin account takes five minutes. Working out exactly what it needs takes a conversation with someone who knows the process. When there is pressure to show results, the first option wins.
2. The agent inherits the permissions of whoever installs it. It is usually set up by someone in IT, with their own user or an existing service account. The agent can now do everything that account can, which is almost always far more than it needs.
3. Integrations grant access in blocks. Many applications don’t let you choose precisely. The connection offers “read and write the whole CRM” or nothing, so the one permission you needed, reading part of it, comes bundled with all the rest.
4. “Just in case.” At the start nobody quite knows what the agent will need three months from now, so it gets some headroom. And then nobody reviews it: the permissions granted for a trial are still there when the agent goes into real use.
Nobody would do this with a new hire. They start with what their job requires, and get more access when they need it.
What can go wrong
Take a simple request: “clean up the duplicate contacts in the CRM.”
With full access, the agent does exactly that. It decides what counts as a duplicate and deletes. If its judgment doesn’t match yours, you find out when a customer is missing, and by then there is no way to know what was there before.
With least privilege, the same agent reads the contacts, finds the duplicates and prepares a proposal. Deleting is blocked, so it asks for approval. Someone reviews it and approves it, and every step is recorded.
The agent is just as capable in both cases. What changes is how much damage it can do when it is wrong. And there are three ways that can happen:
- It misreads an instruction. An agent doesn’t follow a list of steps: it interprets what comes in and decides. That is its strength, and also why it can make mistakes.
- It receives instructions that didn’t come from you. An email or a document can contain text written so the agent will treat it as a command. The more the agent can do, the worse it is if it complies.
- It sees what it shouldn’t. A sales agent with access to every folder can also read the payroll, even though nobody asked it to.
There is a fourth, less visible problem: if there is no record of what the agent did, you can’t prove anything. Not to a customer, not to an auditor, not to yourself.
How to apply least privilege to an AI agent
The principle of least privilege is older than AI: every user, and now every agent, gets access only to what their work requires. Applying it to an agent takes six steps.
1. Start from the task, not the system. Don’t ask “what should I give it access to?” Ask “what does it have to do?” Write down the task and, underneath, what it needs to read and what it needs to change. That list is its permissions.
2. Separate reading from writing. Looking up a value and changing it are very different risks. Many agents do their job well with read-only access.
3. Set three levels for each action. What it does by itself, what needs approval, and what is blocked.
| Level | What it means | Example |
|---|---|---|
| Does it alone | Actions that change nothing or are easy to undo | Looking up its own accounts, preparing a draft |
| Needs approval | Actions with an outside effect or that are hard to undo | Sending an email to a customer, changing an order |
| Blocked | Actions that are not part of its job | Deleting records, making a payment |
4. Never more than the person using it. If a sales rep can’t see another team’s accounts, neither can their agent.
5. Isolate each agent. Each one sees only the files and tools in its scope. That way a mistake stays contained and two agents don’t interfere with each other.
6. Log and review. Keep a record of what it read, what it did and who approved it. And review permissions regularly: the ones that haven’t been used in months can go.
This is more than good practice. Spain’s data protection authority, the AEPD, has published ten recommendations for people using AI assistants and agents (in Spanish). It says providers should offer sufficient controls, among them permissions that distinguish reading from acting, confirmation for higher-impact actions, a history of what the agent has done, and an immediate way to stop it.
Does limiting permissions make the agent less useful?
It is the most common objection, and it is partly right: if a person has to approve every step, you haven’t automated anything.
The answer is to require approval only where it matters. An agent can read, compare, classify and prepare without anyone stepping in, and that is most of the work. A person comes in for the few steps that have consequences: sending, paying, deleting.
And when part of the process is always done the same way, the agent doesn’t need to decide anything: that part is better handled by an automation that repeats the same steps, which is more predictable and easier to audit.
Autonomy can be extended later, gradually, based on what you see the agent do. With a record in place, giving it more room stops being a leap of faith.
How Heptora handles it
In Heptora, least privilege is the starting point, not an option you have to switch on. The platform’s AI governance rests on four mechanisms:
- Least privilege. Every assistant, agent and tool gets only what it needs, and every access is checked at the moment it happens. An agent can never do more than the person using it.
- Isolated agents. Each one works with the files, collections and tools in its scope, and can’t touch anything outside it.
- Approval on critical steps. You decide which they are: sending, paying, deleting, changing master data. There the agent stops and asks for confirmation.
- A record of everything. Which knowledge it used, which tool it called, with what data, and who approved it.
In addition, every tool the agent connects to is configured separately, and write tools are not treated the same as read tools. All of it runs on on-premise AI: you decide where the data is processed and what the AI can do with it.
Frequently asked questions
What is least privilege for an AI agent?
It means giving the agent access only to the data and actions its task requires, and nothing else. If its job is to check orders, it can read them, but not change or delete them.
Should an AI agent have admin permissions?
No. An agent with admin permissions can do anything in the system, so a mistake affects everything. It should have its own account, with the permissions of the task it has been given.
How often should you review an AI agent’s permissions?
Whenever its task changes, and also on a regular schedule; every three to six months is reasonable. In the review, remove the permissions it hasn’t used.
What is the difference between limiting what an agent says and what it can do?
Filters on the text control what the agent answers. Permissions control what it can touch. For an agent that acts in your systems, the second is what prevents damage: even if it receives an instruction it shouldn’t follow, it can’t carry out what is blocked.



