Skip to content
AI artificial intelligence
About usLet’s talk
Back to articles

AI agent permissions checklist for business

An AI agent as a new hire: own account, minimal access, human approval for sending, payments and deletion, logs and a plan to revoke access. Checklist.

Short answer

Give an AI agent access the way you would give it to a new employee on probation: its own account instead of someone else's password, only the systems and data that one specific task requires, and ideally read-only access to start with. Leave sending messages, payments, deletion and publishing for a human to approve. Turn on logging of the agent's actions and decide who revokes its access, and how, before you need to.

We did not make this up. The same principles keep coming up in the sources we read: OWASP describes Excessive Agency as a vulnerability caused by too much functionality, too many permissions and too much autonomy. NIST defines the principle of least privilege, and the Claude Code and Codex documentation shows how to set up approvals and blocks in practice.

Below are five checklists: access and accounts, data, actions that need human approval, logs and oversight, and shutting the agent down and revoking access. At the end there is a plain-text version to copy and a set of frequently asked questions. The text is based solely on the sources linked at the bottom, as of October 17, 2026. It is not legal advice.

Where the idea comes from: managing an agent like an employee

The trigger was a Workday announcement of October 13, 2026 about agents working in the background in HR, finance and IT. The company writes that its agents inherit the policies, permissions and approval rules that apply in the customer's organization. The customer decides which actions an agent can take on its own, which require review and when a human has the final say. Every agent action is recorded: what it did, what information it used and who approved it. In the recruiting example, the candidate search runs in the background, but a message to a candidate needs the recruiter's approval before anything is sent.

Workday announced the idea of managing agents like employees as early as February 11, 2025, when it unveiled the Agent System of Record: onboarding agents with a defined role and secure access to data, access control and monitoring of their activity. On the product page, Workday says that each agent has its own identity for authentication, authorization and auditing, and that the agent lifecycle covers registration, configuration, activation, deactivation and archiving.

A small company does not need an enterprise platform for this. It needs the same questions you ask when hiring: what this person has access to, what they cannot do without approval, who checks their work and what happens on the day they leave. We have not tested Workday products and we do not evaluate them. We treat the announcement as a starting point. If you are still deciding which work an agent should help with, the free AI assessment for your company is a simple way to pin that down.

A new employee and an AI agent: the same questions
For a new employeeFor an AI agent
Their own account and IDA separate account, API key or token for the agent, not the boss's account
Scope of dutiesOne described task and a list of the tools needed for that task only
Probation periodStart in read-only mode or with approval of every action
A manager's signature on important decisionsHuman approval for sending, payments, deletion and publishing
A trail in the systemsA log of the agent's actions and of approval decisions
Last day: handing back the keysShutting down the agent, revoking tokens, reviewing permissions

Why an agent needs limits, not just a good prompt

The OWASP Top 10 for LLM Applications (2025 version) describes risk LLM06 Excessive Agency: damaging actions performed in response to unexpected, ambiguous or manipulated model output, regardless of what caused the error. Among the causes OWASP lists hallucinations and prompt injection, and as the root of the problem: excessive functionality, excessive permissions and excessive autonomy. An example from the document: a plugin was only supposed to read documents, but it also allowed modifying and deleting them.

The second risk is LLM01 Prompt Injection. In its indirect form, instructions reach the model from external content, for example a website or a file. OWASP writes that it is unclear whether there are fool-proof methods of preventing this vulnerability. That is why, among the measures that limit its impact, it lists least privilege and human approval for high-risk operations. OpenAI says something similar in its guide to agent safety: even with safeguards, an agent can make a mistake or be tricked, so you need to decide carefully what access you give it.

The practical takeaway: an instruction in a prompt is a request, a permission is a boundary. The Claude Code documentation says so directly. Permission rules are enforced by the tool, not by the model, and instructions in a prompt or in a CLAUDE.md file influence what the agent tries to do, but they do not change what the tool allows.

Prompt injection: when a document tries to give your agent orders →

1. Access and accounts

The starting point is the NIST definition: a system should restrict the privileges of users, and of processes acting on their behalf, to the minimum necessary to accomplish assigned tasks. An AI agent is exactly such a process. OWASP translates this to agents: grant only the extensions (tools) that are needed, with only the functions that are needed in each, and with minimal permissions in the target systems.

An example from OWASP: an assistant that is supposed to summarize email only needs to read messages. It should not have functions for deleting or sending, and it should connect to the mailbox via OAuth with a read-only scope.

MCP at work: connecting a conversation to order data →

Access and accounts: checklist

  • the agent has its own account, API key or token, not an employee's login and password (Workday: a separate agent identity for authentication and auditing)
  • you have written down the agent's one task and the list of tools it needs for it; everything else is turned off (OWASP LLM06: minimize extensions)
  • tools have only the functions that are needed, e.g. reading email without sending or deleting (OWASP LLM06: minimize extension functionality)
  • when signing in via OAuth, you choose the narrowest scope, e.g. read-only (OWASP LLM06)
  • the agent's database or system account has only the rights it needs, e.g. SELECT on one table, without UPDATE or DELETE (OWASP LLM06)
  • you avoid open-ended tools, such as running any terminal command or fetching any URL, if a narrower one will do (OWASP LLM06)
  • actions on behalf of a specific person go through that person's permissions, not through a shared account with access to everything (OWASP LLM06: user context)
  • you have removed tools and plugins left over from testing that are no longer used (OWASP LLM06)
  • in tools with working modes, you start with a read-only mode or one that asks for approval (Codex: read-only / on-request; Claude Code: Manual mode, i.e. default, and plan mode)

2. Data

If the agent sees personal data of customers or employees, the GDPR applies. Art. 5(1)(c) requires data minimization: data must be limited to what is necessary for the purpose. Art. 25(2) covers data protection by default: by default, only the personal data necessary for each specific purpose should be processed, which applies to the amount collected, the extent of processing, the storage period and accessibility. Art. 32 requires security measures appropriate to the risk, including protection against unauthorized disclosure and access.

OpenAI points to a second problem: data leaking without any attacker involved. The model may send more data to a connected tool (MCP) than the user intended, and you do not have full control over what the model decides to pass on. The simplest protection is not to give the agent access to data the task does not require.

Data: checklist

  • the agent sees only the folders, tables and mailboxes needed for the task, not the company's entire drive (GDPR Art. 5(1)(c) and Art. 25(2))
  • files with passwords and keys are ideally not in the repository or on the machine where the agent runs at all; the working directory is not a boundary, and the sandbox by default allows reading most of the computer, including credential files. If a .env file has to stay, add a deny rule Read(./.env) in Claude Code and turn on the sandbox: the rule on its own blocks the built-in tools and commands like cat, but not grep -r or scripts run by the agent, and with the sandbox on, Claude Code also applies it to commands run inside the sandbox (sandbox.filesystem.denyRead does the same) (Claude Code documentation: Read and Edit rules, sandbox)
  • you know where the tool vendor stores data and whether it transfers it outside the EEA; if so, the transfer must meet the conditions of Chapter V of the GDPR (GDPR Art. 44–49; UODO: SME list, question 10)
  • the agent does not get personal data if the task can be done on anonymized or pseudonymized data (GDPR Art. 25(1) and Art. 32(1)(a))
  • you have checked whether the tool vendor processes personal data on your behalf; if so, you need a data processing agreement (GDPR Art. 28(3))
  • you treat external content (web pages, emails, attachments) as untrusted and keep it separate from instructions (OWASP LLM01; OpenAI: do not put untrusted data in developer messages)
  • you have decided how long the agent's conversations and logs are kept, because they may also contain personal data (GDPR Art. 5(1)(e); UODO: SME list, question 13; Codex: prompt content in telemetry is hidden by default, but session transcripts may be saved locally in history.jsonl in CODEX_HOME, which history.persistence = "none" turns off)

3. Actions that need human approval

OWASP recommends human-in-the-loop control: a human approves high-impact actions before they are carried out. An example from the document: an app that creates and publishes social media posts should have an approval step in the publishing operation itself. OWASP adds the principle of complete mediation: whether an action is allowed is decided by the target system, not by the model.

The tools have ready-made settings for this. In Claude Code, rules are divided into allow, ask and deny, checked in this order: deny, then ask, then allow. An ask rule forces an approval prompt even when a narrower allow rule matches the same call. In Codex, Auto mode, recommended for version-controlled folders, asks for approval when editing files outside the working directory and when accessing the network, and calls to app and MCP tools marked as destructive always require approval. In its agent guide, OpenAI recommends keeping MCP tool approvals turned on so that the user can review and confirm every operation. On Pro, Max and Team plans, Claude Code now starts in auto mode by default, where a classifier reviews actions instead of a person; we cover separately how to bring approval prompts back and set this for the whole company.

n8n: show the finished email before pressing Send →Claude Code stops asking about every command: auto mode by default and what to set up at work →

Actions we leave for a human to approve
ActionWhySource of the principle
Sending an email, text message or message to a customereffect outside the company, cannot be undone; with prompt injection it is a route for data leaksOWASP LLM06 (the mailbox example)
Payment, bank transfer, order, refundfinancial effectOWASP LLM01 and LLM06: approval for high-risk operations; OpenAI: example of an unintended refund
Deleting files, records, emailsdata lossOWASP LLM06 (deletion without confirmation as an example of excessive autonomy)
Publishing on a website or social mediapublic effectOWASP LLM06 (the post publishing example)
Changing permissions, passwords, security settingsthe agent could widen its own accessOWASP LLM06: complete mediation in target systems
Terminal commands, network access, pushing to a repositorywide range of possible effectsClaude Code and Codex: approval prompts by default, ask/deny rules

Approvals: checklist

  • the agent drafts the email or message, and a human sends it (OWASP LLM06; Workday: a message to a candidate requires the recruiter's approval)
  • payments, transfers and refunds require approval, or the agent has no access to them at all (OWASP LLM01 and LLM06)
  • deleting data requires confirmation by a human (OWASP LLM06)
  • publishing content externally has an approval step (OWASP LLM06)
  • the block or approval is set in the target system or in the tool, not just described in the prompt (OWASP LLM06: complete mediation; Claude Code: rules are enforced by the tool, not the model)
  • modes that skip approval prompts (Claude Code bypassPermissions, Codex --yolo) are turned off outside an isolated environment (Claude Code and Codex documentation)
  • the person approving sees exactly what the agent wants to do before clicking “yes” (Claude Code: the prompt shows the planned action)

4. Logs and oversight

OWASP points out that logging and monitoring do not prevent excessive agency, but they limit the damage: they make it possible to notice unwanted actions and respond. The same goes for rate limits on the number of operations over time, which give you more time to detect a problem before the damage grows.

In Codex, OpenTelemetry telemetry is turned off by default. When enabled, it records, among other things, tool approval decisions (approved or rejected, with information on whether the decision came from the configuration or from the user) and the results of tool calls. The documentation recommends not logging prompt content unless company policy explicitly allows it, sending data only to your own collectors and regularly reviewing events for changes in approvals and unexpected calls. In its MANAGE function, the NIST AI RMF recommends, among other things, monitoring the system after deployment and keeping a record of errors, incidents and changes to the system.

Logs and oversight: checklist

  • you record what the agent did, with which tool and who approved the action (OWASP LLM06; Workday: log of actions and approvals; Codex: tool_decision and tool_result events)
  • logs go to a place the company controls, with restricted access and a retention period (Codex: telemetry guidance; GDPR Art. 5(1)(e))
  • prompt content in logs is hidden by default unless company policy allows logging it (Codex: log_user_prompt = false)
  • you have set limits, e.g. on the number of messages sent or operations per hour, where the tool allows it (OWASP LLM06: rate limiting)
  • one specific person is responsible for the agent and reviews its actions regularly, e.g. every week (NIST AI RMF: assigned responsibility and monitoring, MANAGE 2.4 and 4.1)
  • you keep a simple list of errors and changes to the agent's configuration: date, what happened, what was changed (NIST AI RMF, MANAGE 4.3)
  • if the agent is a high-risk AI system, e.g. in recruitment, you check the obligations under Art. 26 of the AI Act, including keeping logs for at least 6 months (AI Act Art. 26(6), Annex III point 4)

5. Shutting down and revoking access

The NIST AI RMF (MANAGE 2.4) recommends that there be mechanisms and assigned responsibility for superseding, disengaging or deactivating an AI system that performs inconsistently with its intended use. Suggested actions include set thresholds at which the system is shut down, a fallback plan for the time it is off, preserving materials for analysis and a review of the causes after every such event. MANAGE 2.3 adds testing emergency procedures and decommissioning systems that exceed an acceptable level of risk.

In Claude Code, a deny rule with just the tool name removes that tool from the agent's context, and permission rules from administrator-managed settings cannot be overridden at any other level. The same settings let you block bypassPermissions mode, which skips approval prompts, and auto mode, in which a classifier works instead of prompts. It is worth doing a dry run of revoking access before you need to do it for real.

Shutting down and revoking access: checklist

  • you know who can shut down the agent and how to do it within a few minutes (NIST AI RMF, MANAGE 2.4)
  • you have a list of all the agent's API keys, OAuth tokens and accounts so you can revoke them (OWASP LLM06; Workday: deactivation in the agent lifecycle)
  • you have decided when the agent gets shut down, e.g. after it sends something without approval or accesses data outside its scope (NIST AI RMF, MANAGE 2.4: thresholds)
  • the process also works without the agent, manually, while it is shut down (NIST AI RMF, MANAGE 2.4: fallback plan)
  • after a shutdown you keep the logs for analysis and write down the cause (NIST AI RMF, MANAGE 2.4)
  • every month or quarter you review permissions and remove those the agent does not use (OWASP LLM06; NIST: least privilege)
  • when you finish a project or switch tools, the agent is shut down and archived, not left with active access (Workday: deactivation and archiving; NIST AI RMF, MANAGE 2.3)
  • in Claude Code, bypassPermissions mode is blocked in managed settings (disableBypassPermissionsMode); if every action is to be approved by a human rather than a classifier, block auto mode too (disableAutoMode) (Claude Code documentation)

How to set this up in Claude Code and Codex

Claude Code has permission modes: default (called “Manual” in the interface; asks for approval the first time each tool is used), acceptEdits, plan (reading and read-only commands only), auto (no routine prompts; instead, a background classifier checks commands and network requests, among other things), dontAsk and bypassPermissions. The documentation recommends bypassPermissions only in isolated environments such as containers or virtual machines. Rules are saved in the settings.json file. The block below combines two examples from the documentation: the rules from the first allow running any npm run (that is, any script from package.json) and commits without asking, and block git push; the rule from the second, Read(./.env), blocks reading the .env file with the built-in tools and with commands that Claude Code recognizes, such as cat. It does not block commands that read files without naming them, such as grep -r, or Python or Node scripts run by the agent. That is what the sandbox is for, enforced by the operating system and turned off by default (you turn it on with /sandbox or sandbox.enabled): Claude Code adds deny rules for Read to the sandbox configuration, so the same file is also blocked for commands run inside the sandbox; you can set the same thing via sandbox.filesystem.denyRead. The sandbox alone, without such a rule, does not protect .env, because by default it allows reading most of the computer, including credential files. The working directory is not a boundary either: read-only commands such as cat read files outside it without asking, unless you turn on permissions.blockReadsOutsideWorkingDirectories. The safest option is to keep secrets outside the repository and off the machine where the agent runs. The documentation adds that a Bash rule matches the text of the command, so the same program invoked differently may not be covered by it.

Codex combines two layers: the sandbox mode (what the agent can technically do, e.g. where it can write and whether it has network access) and the approval policy (when it has to ask). Locally, by default, it has no network access and writes are limited to the working directory. For reading and planning only, there is read-only mode. The --dangerously-bypass-approvals-and-sandbox mode (alias --yolo) turns off both the sandbox and approvals; the documentation does not recommend it. Codex can also save session transcripts locally in the history.jsonl file in the CODEX_HOME directory; if you do not want to keep them, set history.persistence = "none".

Claude Code, .claude/settings.json: two examples from the documentation combined
{
  "permissions": {
    "allow": [
      "Bash(npm run *)",
      "Bash(git commit *)"
    ],
    "deny": [
      "Bash(git push *)",
      "Read(./.env)"
    ]
  }
}

GDPR and the AI Act: what this means for a small company

The GDPR says nothing about agents, but its principles fit them directly: data minimization (Art. 5), data protection by default (Art. 25), security of processing (Art. 32) and the contract with a processor (Art. 28). If the agent has access to personal data, these articles are a good starting point for a conversation with the person responsible for data protection in your company. If the agent's tool transfers personal data to a third country, that is outside the EEA, the conditions of Chapter V of the GDPR (Art. 44 et seq.) apply, e.g. a Commission decision finding an adequate level of protection (Art. 45).

A practical starting point comes from UODO, the Polish data protection authority (Urząd Ochrony Danych Osobowych); its guidance is a Polish source written for Polish companies. On August 6, 2026, the authority published “Listy pytań inicjalnych” (initial question lists), including a GDPR checklist for small and medium-sized companies that use off-the-shelf AI tools. It includes, among others, questions about the data processing agreement with the vendor (Art. 28), about where the vendor stores data and whether it transfers it outside the EU (Art. 44–49), whether it may train models on the data entered and how long it keeps the conversation history. UODO notes that the lists are not a binding interpretation of the law and do not replace a risk analysis or a data protection impact assessment.

The AI Act distinguishes between obligations. Art. 4 on AI literacy has applied since February 2, 2025 (Art. 113(a)) and also covers deployers, that is companies using off-the-shelf tools. The detailed obligations under Art. 26, such as human oversight by people with the appropriate competence and keeping logs for at least six months, apply to high-risk AI systems. These include AI used for recruiting and evaluating candidates (Annex III point 4). According to the consolidated text of Art. 113, the provisions on the high-risk systems listed in Annex III apply from December 2, 2027. An agent that sorts invoices or drafts email replies is usually not a high-risk system, but it is worth assessing each use case separately.

We cover the deadlines under the AI Act and the Polish Act on Artificial Intelligence Systems (a national law that applies in Poland) in a separate article, available in Polish.

The Polish Act on Artificial Intelligence Systems: obligations for companies. Checklist (in Polish) →

AI agent permissions checklist to copy

A plain-text version of all the lists. Paste it into the document where you describe the agent, and tick it off before launch and at every review. The sources for the individual items are in the sections above.

To copy (text)
AI AGENT PERMISSIONS CHECKLIST
Agent: ____________  Task: ____________  Owner: ____________  Date: ________

1. ACCESS AND ACCOUNTS
[ ] Separate account / API key / token for the agent (not an employee's account)
[ ] One task and a list of the tools it needs; everything else turned off
[ ] Tools only with the functions needed (e.g. read without send)
[ ] OAuth with the narrowest scope (e.g. read-only)
[ ] System accounts only with the rights needed (no deletion)
[ ] No open-ended tools (any command, any URL) if a narrower one will do
[ ] Tools left over from testing removed
[ ] Start in read-only mode or with approval prompts

2. DATA
[ ] Access only to the folders, tables, mailboxes needed
[ ] Passwords, keys, .env files ideally outside the repo and off the agent's machine
    (the working directory is not a boundary; by default the sandbox reads most of the disk)
[ ] Claude Code: deny rule Read(./.env) and sandbox turned on
    (the rule alone does not block e.g. grep -r or the agent's scripts;
    in the sandbox it also covers terminal commands)
[ ] Personal data only when necessary; otherwise pseudonymization
[ ] Data processing agreement with the vendor if it processes personal data
[ ] Known where the vendor keeps data and whether it transfers it outside the EEA
[ ] External content treated as untrusted
[ ] Retention period for conversations and logs decided

3. ACTIONS THAT NEED HUMAN APPROVAL
[ ] Sending emails and messages: the agent drafts, a human sends
[ ] Payments, transfers, refunds: approval or no access
[ ] Deleting data: confirmation by a human
[ ] Publishing externally: approval step
[ ] Changing permissions and security settings: human only
[ ] Blocks set in the system or tool, not just in the prompt
[ ] Modes without approval prompts turned off outside an isolated environment

4. LOGS AND OVERSIGHT
[ ] Log: what the agent did, with which tool, who approved
[ ] Logs kept by us, with restricted access and a retention period
[ ] Prompt content in logs hidden by default
[ ] Limits on operations over time, if the tool allows
[ ] Responsible person and regular review
[ ] Record of errors and configuration changes
[ ] Assessment of whether it is a high-risk system (AI Act, e.g. recruitment)

5. SHUTTING DOWN AND REVOKING ACCESS
[ ] Known who shuts down the agent and how
[ ] List of keys, tokens and accounts to revoke
[ ] Agreed situations in which the agent is shut down
[ ] Process works manually while the agent is off
[ ] Logs kept for analysis after a shutdown
[ ] Regular review and removal of unused permissions
[ ] Shutdown and archiving when the project ends

Frequently asked questions

What permissions should an AI agent get at the start? The smallest set that lets it do one specific task, ideally read-only. NIST defines the principle of least privilege as restricting the access of users and of processes acting on their behalf to the minimum needed for the task. OWASP recommends minimizing the agent's tools, their functions and its permissions.

Should an AI agent have its own account? Yes. A separate account or token lets you limit the scope of access, tell the agent's actions apart from people's actions in the logs and revoke access without changing employees' passwords. Workday describes a separate identity for each agent on its platform for authentication, authorization and auditing. OWASP advises against an agent connecting to systems through a generic account with broad permissions.

Which agent actions need human approval? High-impact ones that are hard to undo: sending messages externally, payments, deleting data, publishing and changing permissions. OWASP recommends human approval of high-impact actions, and OpenAI recommends keeping approval of MCP tool calls turned on.

Is it enough to write in the prompt what the agent must not do? No. The Claude Code documentation says that permission rules are enforced by the tool, not by the model, and that instructions in a prompt do not change what the tool allows. OWASP writes that it is unclear whether there are fool-proof methods of preventing prompt injection, so the boundaries have to be set in the systems.

What should a log of agent actions contain? What the agent did, with which tool, with what result and who approved the action. Workday describes this scope of recording in its announcement, and Codex, with telemetry turned on, records approval decisions and the results of tool calls. It is better not to log prompt content by default, because it may contain sensitive data.

Does the AI Act impose obligations on a company that uses an AI agent? Art. 4 on AI literacy also covers deployers and has applied since February 2, 2025. The obligations under Art. 26, including human oversight and keeping logs for at least six months, apply to high-risk systems, e.g. in recruitment, and according to Art. 113 they apply to the systems listed in Annex III from December 2, 2027. This is not legal advice.

How quickly can you revoke an agent's access? Prepare for it before launch: a list of the agent's accounts, keys and tokens, a person who can shut it down and a manual fallback way of getting the work done. The NIST AI RMF recommends mechanisms and assigned responsibility for shutting down an AI system that performs inconsistently with its intended use.

Sources and further reading

The sources behind this article. Instructions and example scenarios are suggestions from our editorial team.

Back to articles