Major

AI Agent Access Control: Scope Permissions Where Agents Act

Secure AI agent access with distinct identities, task-scoped credentials, per-action checks, and human approval. Here is how to build it on Major.

Rahul RamakrishnanUpdated
Access card reader beside a closed door in an office stairwell, representing scoped agent access control

How do you secure access for AI agents?

AI agent access control decides what an agent can read, change, and trigger across your systems, and it has to be enforced at the moment each action is attempted. Give every agent its own least-privilege identity, issue short-lived credentials scoped to the task, check every read and write at the action boundary, and put a named human between any consequential proposal and its execution. A prompt that says "never touch production" is a request. A policy check that returns deny is a control.

On Major, the repeatable stretch of an agent's work runs as a deterministic app with its own scoped credentials, RBAC, and audit log, so the permission boundary is code that fires the same way on every run. The agent keeps the judgment calls and people keep the approvals.

Why agent access breaks the old model

An agent is not one API call. It plans, calls a tool, reads the result, and calls the next tool, sometimes dozens of times for one request. Auth0's walkthrough of access control in the era of AI agents describes the consequence: an agent's effective role shifts from moment to moment, so a static role either gets swapped constantly or inflated into one oversized role that never changes. Neither survives an audit.

The harm a CISO worries about is rarely one forbidden call. It is a chain of calls that were each permitted. A contract read, a billing lookup, and a send from a shared mailbox are three legitimate grants. Together they are an external disclosure nobody approved. OWASP's LLM Top 10 names the underlying condition excessive agency.

NIST's AI Risk Management Framework gives you the accountability vocabulary (Govern, Map, Measure, Manage) but does not prescribe an agent permission model. Someone has to own the agent's identity, someone the policy, someone the approval. Access control starts there.

Five controls and the evidence each leaves

  • Identity: enforced in the identity provider and at credential issuance. Evidence: agent ID, task ID, delegating user, credential lifetime. Limits shared credentials that make every action look like one actor.
  • Scope: enforced in the credential grant and the tool inventory. Evidence: granted scopes, reachable resources, expiry. Limits one stolen token reaching everything.
  • Per-action authorization: a policy decision at each tool call. Evidence: resource, operation, allow or deny, policy version. Limits chained permitted actions producing a prohibited outcome.
  • Approval: a workflow gate outside the model. Evidence: proposer, approver, the exact action approved. Limits an agent authorizing its own consequential action.
  • Logging: written where the action executes. Evidence: request, decision, side effect, result. Limits reconstruction gaps after an incident.

Give each agent and task a bounded identity

An agent should not borrow a human's session or share a service account with six other agents. Each agent gets its own identity, and each task gets credentials that are short-lived and narrow. Auth0's guidance is to start agents read-only and grant elevated permissions only through an audited step. That is the right default.

Should an agent use a service account? Yes, when the account is specific to the task, limited to the resources it needs, and carries the delegating human's context on every call. A service account with standing write access to a system of record on behalf of every user is a master key with a friendly name.

Check every read and write at the action boundary

Three kinds of action need different treatment, and a policy that cannot tell them apart is either too loose or unusable.

A read touches data. The control question is whose data and for whom. Cerbos makes a sound point in its piece on permission management for AI agents: filtering must happen before retrieval, so the model never sees documents the user could not have opened.

A write changes a system of record. The question is whether this agent, for this task, may mutate this record, and whether the change can be reversed.

An external side effect, such as an email to a customer, cannot be recalled and carries the company's name. It gets the strictest check.

The model can propose an action, but the policy decides whether it runs. A rule held in a prompt is only as strong as the model's compliance on that run, and the model's output is exactly the thing being authorized.

Separate proposing from approving

Permission to prepare an action is not authority to complete it. An agent can be entitled to read invoices and draft a collections note while having no authority to send it. Collapse those grants and the agent approves its own work.

Set the line by consequence. Reversible, low-impact actions can run on policy alone. Anything that moves money, contacts an outside party, deletes data, or changes access needs a named approver, and the approval binds to the exact action. An approver who clicks continue on a summary has approved a summary. Add escalation as a first-class outcome: when policy cannot decide, the safe result is a queue item for a person, not a retry with broader scope.

What deterministic apps change

Take an illustrative invoice reconciliation workflow (a design, not a customer deployment). The platform issues a 20-minute task credential bound to the requesting finance operator, with read on invoices and contracts and write on a draft table only. The agent reads both documents, each read policy-checked and logged. Judgment enters once: it decides a mismatch is a late-fee dispute and drafts a note into the draft table. A gate then holds the note and the ledger adjustment as a proposal. An accounts receivable approver edits and approves it. A separate execution step with its own narrow credential sends the note and writes the adjustment, logging proposer, approver, and result.

Only one of those steps needs a model. The rest run identically every time. If the agent re-derives the workflow on each run, the model re-establishes the permission boundary each time too, and every tool choice is a fresh chance to drift. When the repeatable steps live in an app, they are code with fixed credentials sized to the app's real needs. A reviewer reads the code instead of inferring behavior from transcripts.

What this does not solve: prompt injection in the judgment step, credential compromise, a badly written policy, or the need for human oversight. Agent-written code still needs review before it earns standing trust. This article also skips agent evaluation and output data-loss prevention, which are separate problems.

Build governed agent access on Major

Major is the enterprise platform where agents build the software they run on. Here is how the pieces map for the reconciliation example.

  • Connectors: NetSuite for bills and vendors, Gmail for the AP inbox, Slack for approvals. Credentials are held at the platform and never placed in a prompt.
  • App: an "AP Match" app with tables for invoices, match status, drafts, and approvals, plus a review queue view. It holds state in a managed database instead of a context window.
  • Agent: classifies discrepancies and drafts the note. It has no send or ledger-write authority.
  • Workflow: triggers on new mail, then pauses at a human approval step in Slack before the execution step runs.
  • Governance: scoped credentials per connector, role-based access on the review queue, SSO, and an audit log written by the app that did the work.

Start building this free.

What to audit and review

Logs do not prevent incidents. They make an incident answerable. For every action keep the agent identity and task, the human it acted for, the tool and resource, the operation, the policy decision and policy version, any approval and approver, the result, the credential scope in force, and a timestamp. For actions through an app, add the app version so a behavior change ties to a code change.

A useful vendor test: pick an action from last month and ask five questions. Which identity acted. On whose behalf. What policy allowed it. Who approved it. What side effect landed. If any answer needs an engineer interview, the trail has a gap.

Where we land

We hold a position some security teams will resist: an access policy that lives only in an agent's prompt, or only in a policy document, is not a control. It becomes one when applied where the work executes. Reason once, run forever applies here. The app layer shrinks the surface where a probabilistic system holds authority, and a smaller surface is one a security team can review. The model stays in the loop for judgment and people stay in for approval.

Start building on Major

Build agent workflows where every credential is scoped, every approval is bound to the exact action, and every run writes its own audit trail.

Related articles

Frequently asked questions

How do I secure access for AI agents?
Give each agent its own least-privilege identity, issue short-lived credentials scoped to the task, and run a policy check on every read and write at the point of action. Keep consequential actions behind human approval, and log the agent, delegating user, resource, decision, and result so any action can be reconstructed later.
Should an AI agent use a service account?
An agent can run under a service account when that account is specific to the task, limited to the resources the task needs, and carries the delegating user's context on each call. A shared account with standing write access across systems removes attribution and widens the damage from any single compromised credential.
How should organizations control high-risk agent actions?
Separate proposing from approving. Let the agent prepare an action, then require a named human to approve the exact content before a separately scoped credential executes it. Set the threshold by consequence: money movement, external messages, deletions, and access changes need approval, and an undecidable case should escalate to a person.
What should AI agent access logs include?
Record the agent identity and task, the human it acted for, the tool and resource, the operation, the policy decision and policy version, any approval and approver, the result, the credential scope in force, and a timestamp. Logs do not prevent incidents, but they let a reviewer reconstruct one without interviewing an engineer.