What systems and data should an AI agent be allowed to access? Only the resources and actions required for its documented job: a unique identity, an explicit data boundary, allowlisted tools, separate read/draft/recommend/execute authority, deterministic approval conditions, short-lived credentials and a tested revocation path. Authorization must be enforced by the application and target system on every action; the model must never be its own permission boundary.

Permission design starts with the job, not the application

Application-level access is too coarse for an agent. A person may say “let it use ERPNext,” but the useful security questions are narrower: may it read submitted invoices, prepare a draft expense record, change a supplier's bank account, approve a payment, or delete an attachment? These verbs have different consequences even though they sit inside the same application.

NIST defines least privilege as granting an entity only the minimum resources and authorizations needed to perform its function. For AI agents, the function should come from the agent job description: purpose, inputs, responsibilities, prohibited actions, escalation and owner. If the job cannot be stated precisely, its permissions cannot be made precise either.

My practical rule is: grant per job, object and action—not per app. Start with no access. Add one permission only when a workflow step requires it, document why it exists, test the effective combined access, and remove it when the responsibility changes.

Threat-model the authority, not just the model

An agent can be manipulated by an untrusted document, a customer message, a compromised integration or an incorrect internal instruction. It can also make a normal reasoning error. Permission design should assume that one of those failures will eventually produce a bad action request and make the unsafe action unavailable or interruptible.

Before granting access, walk through six questions:

  1. What can the agent see? Include metadata, search results, attachments, memories and data returned indirectly by tools.
  2. What can it change? Separate drafts, internal notes, system-of-record updates, external messages, approvals, payments and deletion.
  3. What can it combine? Several individually narrow permissions may produce broad aggregate authority across systems.
  4. Who is affected? Consider customers, employees, suppliers, other tenants and regulated or commercially sensitive records.
  5. Can the result be reversed? A queue assignment differs from a sent quotation, published statement or released payment.
  6. How will a person stop it? The kill path must work during an incident, not only in a design document.

Microsoft's current least-privilege guidance for AI agents makes the same aggregate-access point: identity, resource scope, tool access and auditability need to be defined before autonomy expands. A collection of narrow roles is not safe if their combined effect lets the agent retrieve sensitive data, change an account and then send the result externally.

The five-level AI agent permission matrix

Use these authority levels to classify every workflow action. Higher levels are not a maturity target. A production agent can remain permanently at Level 2 or 3 if that delivers the outcome safely.

Authority levelMeaningBusiness example
1. ReadRetrieve only the minimum approved records and fields.Search a restricted knowledge collection; view open service tickets for one queue.
2. DraftPrepare content or a proposed record without changing a system of record.Draft a customer reply or purchase-order record for review.
3. RecommendPropose a decision with evidence, but leave approval and execution to a person.Recommend a supplier match, lead priority or exception route.
4. Execute boundedPerform an allowlisted, reversible action inside deterministic limits.Add an internal note, assign a queue or update a non-financial status.
5. Commit consequentialApprove, send, pay, delete, publish or make another material commitment.Release a payment, send an external message or change bank details.

Do not let one broad verb hide several rights. “Write” might mean add a reversible internal note, alter a contractual field or overwrite an audit record. “Send” might mean notify an internal owner or make a commitment to a customer. Create separate tool operations for materially different actions and attach different policies to them.

Level 5 deserves special treatment. In many SME workflows, the correct permission is not “agent may approve after confidence exceeds 90%.” It is “agent may prepare the case; a named person approves; deterministic code executes the approved action.” Model confidence is not authorization, and a percentage does not measure consequence.

Build permission checks in six layers

One access-control list at the connector is not enough. The same request should pass through several independent, deterministic checks before a tool acts.

LayerDesign question
IdentityWhich unique agent identity is acting, who owns it, and is it acting as itself or for a signed-in user?
ResourceWhich tenant, workspace, system, object, row, folder or data classification is in scope?
ToolWhich connector or API may be called, and which operations are allowlisted?
ActionMay the agent read, draft, recommend, execute or commit this specific change?
ConditionWhat value, customer state, time window, confidence, consent or approval must be present?
RuntimeWhere can the agent run, which network destinations are reachable, and what secrets can it obtain?

Give each production agent a distinct, lifecycle-managed identity with a business sponsor and technical owner. Avoid a shared administrator account or a long-lived API key copied across agents. When a user initiates work on their own records, delegated access can preserve that user's downstream permissions. For background work, use an agent or workload identity whose access is narrower than any administrator's.

Enforce tenant, row and field boundaries at the data or API layer. Telling the model “only read UAE customer records” is not an authorization control. The query, token or downstream service must make Indian, UAE, internal and customer-specific boundaries enforceable. Recheck authorization at execution time because the user, record status or policy may have changed since the agent planned the action.

Separate planning from execution

A safe agent may reason broadly while acting narrowly. Let it inspect approved context and propose a structured action request. Then place a policy-enforcement layer between the model and each tool. That layer should validate the agent identity, action name, typed parameters, target resource, current record state, limits, approval evidence and idempotency key.

For example, a customer-operations agent may draft a WhatsApp reply from an approved knowledge base. A separate send operation can require verified consent, an allowlisted template or content policy, the correct customer and tenant, business-hour rules, no unresolved complaint flag and human approval for refunds or contractual statements. The agent's prose instruction cannot bypass those checks.

Design tools to express the allowed business action, not a raw superpower. Prefer create_draft_supplier_note over unrestricted database write access; prefer route_invoice_exception over a general ERP update endpoint. Validate outputs and confirm the target system's response before the workflow marks an action complete.

Use temporary access for exceptional authority

Standing privilege is convenient and dangerous. If an agent needs higher authority only for a particular case, issue a short-lived, narrowly scoped credential after the required approval. Bind it to the agent identity, action, target resource, expiry and workflow run. Do not hand the agent a reusable secret that remains valid after the task.

Google Cloud's service-account guidance recommends dedicated identities, temporary privilege elevation and downscoped access tokens instead of one broadly privileged account. Microsoft's agent guidance similarly recommends just-in-time entitlements, temporary role activation or short-lived tokens. The implementation differs by platform; the pattern is stable: make exceptional authority expire automatically.

Check token lifetime against revocation expectations. Disabling an account may not invalidate every token already issued. Test how your identity provider, connector and target application behave, and keep high-risk credentials short enough that the remaining exposure is acceptable.

Approval gates need transaction context

A human approval is useful only when the reviewer can understand the exact action. Show who initiated the run, which agent is acting, the target record, old and new values, source evidence, policy result, financial or customer consequence, and what will happen after approval. Never ask someone to approve an opaque “agent wants access” prompt.

Bind the approval to a transaction digest or immutable action payload. If the amount, recipient, attachment, account, message or permission changes, invalidate the approval and request a new one. Apply expiry and single-use semantics so yesterday's approval cannot authorize a different action tomorrow.

OpenAI's current enterprise agent guidance describes role-based tool/action permissions, approval gates for sensitive changes, and activity logs as separate controls. That separation matters: a user's ability to run an agent should not automatically grant the agent every action available through a connected application.

Design revocation before launch

Every agent needs more than an on/off switch. Document and test how to:

  • disable the agent identity and prevent new tokens;
  • revoke active sessions or wait out short-lived credentials;
  • remove tool, role, tenant and data grants;
  • rotate secrets and invalidate delegated consent where applicable;
  • stop scheduled runs and queued work;
  • quarantine outputs that have not yet reached a system of record;
  • switch the workflow to a documented manual fallback; and
  • preserve evidence for investigation without exposing more sensitive data.

Trigger a permission review when the agent's job, owner, tools, model, data class, tenant scope or environment changes. Also review unused and aggregate permissions periodically. Access tends to grow during pilots; production readiness requires proving what remains necessary.

NIST's AI RMF Core calls for ongoing review and for mechanisms to disengage or deactivate systems whose behaviour is inconsistent with intended use. Revocation is therefore both an identity task and an operating-process responsibility.

Log enough to reconstruct authority

Traditional application logs often show that an API call happened but not why it was allowed. For each material action, capture:

  • agent identity, version, owner and initiating user or schedule;
  • workflow run and correlation ID;
  • requested action, target resource and tenant;
  • effective roles, scopes and temporary grants;
  • policy checks, approval identity and approval payload;
  • source references used for the decision;
  • validated tool parameters and redacted result;
  • timestamp, outcome, retries, exception and final system state.

Do not put secrets, full sensitive prompts or unnecessary personal data into logs. Define retention, access and redaction deliberately. The goal is to answer: who asked, which authority applied, what was attempted, what changed, what evidence supported it, and who can investigate.

A practical permission review for an SME

  1. Choose one job. Write the outcome, trigger, owner and non-goals.
  2. Inventory actions. List every system, object and verb the workflow touches.
  3. Assign an authority level. Keep each action at the lowest useful level in the five-level matrix.
  4. Define boundaries. Specify tenant, rows, fields, classifications, limits, time and initiating user.
  5. Place deterministic controls. Enforce authorization, validation, approvals and idempotency outside the model.
  6. Test hostile and broken cases. Include prompt injection, stale permissions, changed records, cross-tenant requests, replayed approvals and unavailable tools.
  7. Exercise revocation. Disable identity, expire credentials, stop schedules and use the manual path.
  8. Review evidence. Confirm logs reconstruct both the action and the authority behind it.

Use the production AI agent architecture to place identity, policy, tools and observability in the wider system. Use the 25-point security checklist for the broader data, supply-chain and incident review. Permission design is one control family, but it is the control that turns a useful tool into bounded authority.

Permission is a product decision

An agent's value does not come from having maximum access. It comes from completing a well-defined job reliably within boundaries the business understands. A narrow agent that prepares a correct, evidence-rich case can be more valuable than an autonomous agent that forces a manager to inspect every action after the fact.

Start with read, draft and recommend. Add bounded execution only when the workflow, authorization layer, evaluation, monitoring, incident response and owner are ready together. Never widen access merely to improve a demo.

Primary sources checked

Checked 2 September 2026. Product capabilities and identity controls change; verify the current documentation for your selected platform during implementation.

Bound the authority before deployment

Run an AI agent permission review

I help SME teams turn broad app access into a job-level permission matrix with deterministic gates, ownership, revocation and evidence.

Book an AI and operations audit