TrendSane

The Permission Problem: Why AI Agents Need Digital Identity, Not Just Access

The Permission Problem: Why AI Agents Need Digital Identity, Not Just Access

Published on Oct 3, 2026 · 13 min read

AI agent security is not principally a question of whether a model can reason well enough to complete a task. It is a question of whether software should be allowed to act, under whose authority, within which limits, and with a record that makes the answer clear afterward.

An AI assistant that drafts an email is a familiar productivity tool. An agent that sends the email, chooses its recipients, reads the customer record, updates a sales system and issues a refund has crossed a more consequential boundary. It is no longer merely producing language or recommendations. It is exercising authority through other systems.

That shift makes permissions the central design problem for agentic AI. Intelligence can make an agent more useful, but it can also make a poorly bounded system more capable of causing harm. A trustworthy agent needs a digital identity, narrowly scoped permissions, time limits, meaningful approval rules and AI audit trails that connect an action to the people and policies responsible for it.

The durable principle is simple: an agent should receive only the authority required for a specific task, for a limited time, under conditions that can be monitored and revoked. Giving it a person’s broad, standing access may be convenient. It is also a way to turn one mistaken instruction, compromised workflow or malicious document into a much larger incident.

From advice to action is a security boundary

Software has long automated actions. Payroll systems transfer funds, infrastructure tools deploy code and workflow engines route requests. What is different about AI agents is their ability to interpret natural-language goals, select among tools and adapt their sequence of actions as circumstances change.

This flexibility is valuable in work that crosses systems. An agent might collect material from a knowledge base, prepare a customer response, open a ticket, schedule a follow-up and update a relationship-management record. In software development, it might inspect a repository, propose a patch, run tests and create a pull request. In administration, it might reconcile invoices against purchase orders or assemble a report from several internal services.

But a natural-language goal is not a precise security policy. “Resolve this customer’s issue” leaves open important questions: May the agent disclose account details? Can it change a contract? Is it allowed to grant a credit, and up to what amount? May it contact a third party? These are not failures of model intelligence. They are questions of authority that organizations have traditionally answered through roles, approvals and business rules.

Why ordinary login systems are not enough

Most identity systems were built around two relatively legible actors: people and applications. A person authenticates, often with multi-factor authentication, then receives permissions based on a role. An application may authenticate with a service account, API key or machine credential. The system can generally tell which employee signed in or which application called an API.

An agent blurs these categories. It may operate on behalf of a user, be configured by an administrator, invoke several external services and continue a task after the initiating user has left. It may use a model supplied by one vendor, orchestration software from another and tools owned by the organization. A single visible action can therefore involve several identities and several policy domains.

Conventional delegated-access standards remain useful foundations. OAuth 2.0 is widely used to grant an application limited access to a resource without sharing a user’s password. OpenID Connect adds a standardized identity layer on top of OAuth-based flows. Yet a token that says an application may read a mailbox or modify a calendar does not, by itself, answer whether an autonomous agent should exercise that permission in response to an instruction embedded in an email, or whether it may use it repeatedly over a long-running task.

That is the gap: traditional access control often identifies who or what can call a service. Agentic systems also need to establish which task is being performed, for whom, with what purpose, under which constraints and with what evidence.

Authentication, authorization and accountability are different jobs

Clear language helps prevent a common mistake: treating a successful login as proof that an action was appropriate.

  • Authentication establishes an identity claim: this is the employee, application or workload that it says it is.
  • Authorization determines what that identity may do: read a file, send a message, approve a payment or alter a record.
  • Accountability makes actions attributable and reviewable: who initiated the task, what policy permitted it, what the agent did and who bears responsibility for the outcome.

An agent can be correctly authenticated and still be dangerously authorized. It can be authorized under a broad role and still act outside the intent of the user who started the task. And an organization can retain logs while still lacking accountability if the records do not distinguish a user’s request from the agent’s own intermediate decisions.

Security frameworks have long emphasized these distinctions. NIST guidance on identity and access management and its zero-trust architecture describe access as something to evaluate continuously rather than grant permanently after a single network-based check. NIST’s AI Risk Management Framework likewise encourages organizations to govern, map, measure and manage AI-related risks. None of these principles eliminates the need for judgment, but together they point away from blanket trust and toward constrained, observable operation.

Why AI agent permissions become complicated quickly

Agents can turn a short instruction into a chain of actions. Their goals may be underspecified, their plans may change as they encounter new information, and their tools may have different permission models. A task that begins as “prepare the renewal briefing” might lead an agent to search shared storage, query a customer database, summarize a contract and draft a message. Each step has a different sensitivity level.

Long-running tasks add another problem. The user may lose access, change roles or revoke consent after the task begins. Data may change. A planned action that seemed harmless in the morning may become inappropriate after an account is placed under legal hold or a customer opts out of contact.

The risk rises when an agent operates with a user’s full privileges. This is the blast-radius problem. If an agent inherits everything a senior employee can access, a flawed plan, exposed token or successful prompt injection may reach every system that employee can reach. The agent does not need malicious intent. It only needs the ability to execute an unintended instruction at scale.

Delegated access should be narrow, temporary and purpose-bound

The safer alternative is delegated access control: grant authority for a defined purpose rather than handing an agent a durable copy of a human identity. The scope should be as small as practical, and the authority should expire when the task ends.

For example, an accounts-payable agent might receive permission to read a specific invoice set and create draft payment requests during a defined window. It should not receive standing permission to alter supplier bank details, approve its own payments or inspect unrelated financial records. A customer-service agent might draft replies and propose credits, while a separate policy-controlled service issues any credit above a threshold.

Useful constraints include:

  • Resource scope: access only to named records, folders, projects or customer accounts.
  • Action scope: permission to create a draft is not permission to send, delete, approve or publish.
  • Time scope: short-lived credentials that expire and can be revoked.
  • Purpose scope: a permission tied to a defined workflow or case, not any future request.
  • Value scope: caps on transaction value, volume, recipients or changes in a period.
  • Context scope: rules based on device posture, location, data classification, risk signals or required human review.

This is least privilege applied to an entity that may make many decisions during a task. It also reflects zero trust for AI agents: do not assume that because an agent was approved once, every subsequent action deserves the same confidence.

An agent needs an identity stack, not one label

“The AI did it” is not a useful identity record. An organization should be able to separate the layers involved in an action:

  1. The human principal: the person, if any, who requested, approved or supervised the work.
  2. The organization: the legal and operational entity whose policies, data and accounts are involved.
  3. The agent application: the deployed workflow or service performing orchestration.
  4. The model and version: the model used for a particular inference, where that information can be recorded.
  5. The task or session: the specific job, case or workflow instance.
  6. The tool identity: the connector, API client or service account that carried out an external action.

These are not interchangeable. A model is not an accountable employee. A user is not necessarily the party that designed an agent’s workflow. A tool credential should not become a substitute for the identity of the task that used it.

In practice, organizations can associate task identifiers and policy context with short-lived tokens, workload identities and tool calls. The exact implementation varies across cloud and enterprise platforms, and agent-specific identity features are still evolving. The important architectural outcome is consistent: a downstream system should be able to evaluate more than “this API key is valid.” It should have enough context to enforce policy and log the action meaningfully.

Audit trails must reconstruct the decision path

AI audit trails should be designed for investigation, not simply for compliance checkboxes. A useful record makes it possible to reconstruct what happened without retaining more sensitive content than necessary.

Depending on the workflow and applicable privacy rules, an audit record may include the initiating user or service, the agent and task identifiers, the permissions and policy version in force, the tools invoked, requested and completed actions, approvals or denials, timestamps, relevant input sources, credential scope, outputs delivered and any exceptions or retries.

It is especially important to distinguish between a human instruction and an agent-generated step. “User asked to prepare a renewal summary” is different from “agent decided to query a particular database” and different again from “agent sent an external email.” Without that separation, a reviewer cannot tell whether an unexpected act was explicitly requested, inferred from a goal, introduced by a tool or caused by an operational failure.

Logs also need protection. They can contain sensitive business data, personal information or security-relevant details. Integrity controls, restricted access, retention rules and independent review matter. “Immutable” logs can be valuable where technically and operationally feasible, but the larger requirement is trustworthy evidence: records that cannot be casually altered by the same process under investigation.

Prompt injection is an authorization problem

Prompt injection occurs when untrusted content attempts to influence an AI system’s instructions. Indirect prompt injection is particularly relevant to agents: hostile instructions can be placed in an email, web page, document or other material the agent is asked to process. Public demonstrations and security research have repeatedly shown that systems connecting language models to tools can be induced to pursue unintended instructions under some conditions.

Better models and filtering may reduce this risk, but they cannot be the only control. An agent that reads untrusted content should not be allowed to treat that content as a new source of authority. A webpage may tell an agent to export data or ignore prior constraints; it cannot grant permission to do either.

The strongest defense is architectural. Separate instructions from data, label trust boundaries, constrain tool calls and require external policy checks before consequential actions. If an agent is analyzing an inbox, it may need authority to read messages. It does not follow that it should have authority to forward them, download attachments to an unapproved destination or change account settings.

Human approval works only when it is designed as a control

Human oversight of AI is often invoked as a universal remedy. It is not. A person confronted with hundreds of routine approvals may approve them mechanically, especially if the system presents a confident recommendation without enough context. Rubber-stamping creates delay without reliably creating accountability.

Approval checkpoints are most useful at genuine decision boundaries: sending external communications, changing permissions, releasing payments, deleting records, deploying production code, making regulated determinations or handling sensitive data. The reviewer needs a concise explanation of the proposed action, the evidence used, the policy basis, the expected consequences and a practical option to reject or modify it.

Lower-risk actions can be automated within explicit limits. Higher-risk actions may require dual approval, segregation of duties or a different credential path. The goal is not to put a human in every loop. It is to ensure that human judgment appears where the cost of error, abuse or irreversibility is high.

Technical controls turn principles into operating limits

No single control solves AI agent security. Effective systems combine identity, application design and operational monitoring.

  • Sandboxing: run untrusted code, browsing and file processing in isolated environments with restricted network and data access.
  • Scoped, ephemeral credentials: use credentials limited to a task and short validity period instead of embedded, long-lived secrets.
  • Policy engines: evaluate proposed tool calls against rules that are independent of the model’s own reasoning.
  • Transaction limits: set caps on payment value, message volume, record changes and other consequential operations.
  • Rate limits and circuit breakers: slow or halt unusual activity before it becomes a large-scale failure.
  • Continuous monitoring: detect anomalous access patterns, unusual destinations, repeated failures or actions outside normal workflow.
  • Revocation: make it possible to disable an agent, token, connector or workflow quickly when conditions change.
  • Testing against adversarial inputs: assess tool-use workflows with untrusted documents, deceptive instructions and attempts to escalate privileges.

These controls should not rely on the agent honestly reporting what it did. Critical enforcement belongs outside the model, in identity systems, gateways, policy services and the applications that own the underlying data and transactions.

Responsibility cannot be delegated to the software

When an agent acts through a shared human account, accountability becomes especially weak. Shared credentials make it harder to establish who approved a task, who configured the workflow and whether an action came from the person or automated software. They also complicate incident response and can undermine separation-of-duties controls.

Organizations should assign owners for the agent, its connected tools, its data access and its business outcomes. Security teams should not be asked to own every decision about acceptable business risk, and business teams should not be expected to design credential boundaries alone. Legal, privacy, compliance and operational leaders may also need a role when agents affect regulated decisions, financial activity or personal data.

Regulatory duties vary by jurisdiction and sector, but many existing rules already require organizations to maintain access controls, records, oversight and accountability. The arrival of an agent does not remove those obligations. It makes it more important to show how an automated action was authorized and governed.

A practical pre-deployment test for AI agents

Before connecting an agent to meaningful systems, leaders should ask questions that are more concrete than “Is the model safe?”

  1. What exact actions can the agent take, and which actions can it only recommend?
  2. Whose authority is it using for each action?
  3. Can permissions be narrowed by resource, action, time, purpose and transaction value?
  4. What untrusted content will the agent read, and can that content influence tool use?
  5. Which actions require human approval, and does the reviewer receive enough context to make a real decision?
  6. Can the organization stop the agent and revoke its credentials quickly?
  7. Can investigators distinguish the human request, agent plan, tool call and final outcome?
  8. What happens when the agent is wrong, compromised, unavailable or operating on stale information?
  9. Who owns remediation, customer communication and any resulting liability?

A deployment that cannot answer these questions is not necessarily unusable. But it is not ready for broad autonomy in high-consequence workflows.

Trustworthy autonomy means bounded authority

The future of AI agents will not be secured by trying to make models perfectly obedient. Language models operate amid ambiguity, and attackers will continue to search for ways to manipulate systems that process untrusted information. The more realistic objective is to make unsafe actions difficult even when the agent misunderstands, encounters hostile content or behaves unexpectedly.

That is why digital identity matters. An agent should be identifiable as a particular software actor performing a particular task under particular delegated authority. Its permissions should be limited, its actions observable, its credentials revocable and its human owners clear.

Organizations that treat agents as users with unlimited API access will inherit a new class of silent, scalable risk. Those that treat them as bounded delegates can capture useful automation while preserving the controls that make digital systems governable. The decisive question is not whether an agent is clever enough to act. It is whether it has been given carefully bounded authority to do so.

Image by stevepb on Pixabay.