In brief
An AI Worker gets its own technical account in company systems with the smallest set of permissions that covers one process: usually reading the data it needs and creating drafts, with no right to approve, delete or change sensitive data. Every irreversible action needs approval by a person using their own account. Permissions are written down in a matrix, keys live in a vault, every step goes to a log, and access is reviewed just like people's access.
Where the risk comes from
OWASP describes the risk of excessive agency in applications built on language models and names three causes: too much functionality, too many permissions and too much autonomy. Each has a plain equivalent in a company:
- too much functionality: an AI Worker that describes invoices also has access to the payments module, "because it was in the same API",
- too many permissions: a technical account with the ERP administrator role, because that was faster during integration,
- too much autonomy: changing a business partner's data without approval, "because the model rarely gets it wrong".
A model can make a mistake or be manipulated by the content of an email or document, as described in Prompt injection: how to protect an AI Worker. Permissions decide how large the impact of such a mistake can be. The principle of least privilege (control AC-6 in the NIST SP 800-53 catalog) says an account holds only the rights it needs for its task. For an AI Worker it is applied more strictly than for a person, because it works faster and on more cases.
Its own identity, not a borrowed account
| Access method | What happens | Verdict |
|---|---|---|
| An employee's account | the log cannot tell the person from the AI Worker, and the permissions are wider than the process | not recommended |
| An administrator or catch-all integration account | one mistake or one leaked key opens the whole system | not recommended |
| Its own technical account per process | the log shows what the AI Worker did, permissions are cut to the process, it is easy to disable | recommended |
The account has a name that makes clear what it is, an owner on the company side (usually the process owner) and a review date. If an AI Worker handles two processes, two accounts are better than one with the sum of both permission sets. General account management principles are covered in Identity and access management (IAM).
A permission matrix: read, draft, write, approve
The simplest tool is a table that assigns one of four levels to each object in the system. Here is an example for an AI Worker that keeps business partner and item records in the ERP in order:
| Object | Level | Reason |
|---|---|---|
| Business partner and item records | read | looks for duplicates and gaps |
| VAT payer register (Poland's "white list" of tax IDs and bank accounts) | read | checks the tax ID and bank account |
| New record from a department's request | draft | a person approves creation |
| Merging duplicates | none, proposal in the report | the data owner merges |
| Changing data in a record | none, proposal in the report | someone in the department changes it |
| Changing a business partner's bank account | none | a frequent fraud target, only a person changes it |
| Invoices, payments, general ledger | none | outside the process |
The "draft" level requires the system to hold a document in a working state that other processes do not see until a person approves it. In many ERP systems this is an ordinary document status or a separate requests table. Where that is not possible, the AI Worker prepares a request outside the ERP and a person makes the entry. How this looks across processes is covered in AI Workers and ERP.
Separation of duties and approval
Approval only means something when someone other than the preparer approves. In practice:
- The AI Worker does not approve its own drafts. Its account has no approver role in any process where it creates documents.
- Approval happens in the system, on the person's own account, not as an "OK" in a chat that the AI Worker then turns into an entry itself.
- The threshold depends on impact, not on the model's confidence. A bank account change always waits for a person, even when the VAT white list confirms the new number. The mechanism is covered in Bank account change fraud.
- The line between "does it alone" and "waits" is written into the rules card, which the process owner approves. More on this in Human in the loop.
Keys, network and environments
- Keys and passwords in a vault, not in a config file or a prompt. The model never sees a key, only the code that calls the system does. The principles are covered in Secrets in applications.
- Short-lived tokens with a limited scope instead of permanent passwords, renewed automatically.
- Network traffic only to the systems it needs. The AI Worker's server connects to the ERP and email, not to the whole company network.
- Separate accounts for test and production, so a test cannot change real data.
- A kill switch. The process owner knows how to block the AI Worker's account within minutes, and the procedure is written down.
Logging and access reviews
Every call to a system goes into a log with the account, case and result. The log answers an auditor's questions ("who changed this record") and helps catch mistakes before they grow.
An AI Worker's permissions are reviewed on the same schedule as people's access, usually quarterly, and on every process change. There are three questions: was every permission actually used, has the process changed, and are there new API functions the account picked up "along the way" during a system update?
The ERP master data keeper from DYNAMINDS Labs works in exactly this setup: it reads records and creates drafts, while merging duplicates, changing record data and changing a business partner's bank account wait for approval. Every step it takes goes to the log.
Questions and answers
Can an AI Worker use an existing employee's account?
It should not. The log then cannot distinguish a person's actions from the AI Worker's, and a person's permissions are almost always wider than a single process. A dedicated technical account takes an administrator a few minutes to set up and gives you a clean log and a quick way to switch it off.
What minimum set of permissions is enough to start?
Usually read access to the data the process needs plus the ability to create drafts or requests. After a few weeks, once the log shows the proposals are accurate, the process owner can move some reversible actions to the "does it alone" level. Irreversible actions stay with a person.
Who in the company is responsible for an AI Worker's permissions?
The process owner decides what the AI Worker does alone and what waits for approval. The system administrator assigns roles according to the matrix. Security or IT reviews them every quarter together with people's access.
Can an AI Worker ask for more permissions itself?
It can flag that a case needs an action outside its permissions and hand the case to a person. It cannot extend its own role, because its account has no administrative rights. Every permission change goes through the same path as an access request for an employee.