Key takeaways
An AI agent needs a verifiable identity distinct from its conversational name and the identity of the person requesting its help.
Authorisation must be enforced by trusted software outside the language model, not by instructions in a prompt.
Grant only the permissions needed for an approved task, with resource, action, time and data boundaries.
Preserve the distinction between the initiating user, the acting agent and the person approving a consequential action.
Recheck permissions at execution time, and design revocation and auditability before expanding autonomy.
Would you give a new employee the keys to every system?
Imagine a finance team introducing an AI agent to help process supplier invoices. It reads incoming documents, matches them to purchase orders and identifies discrepancies. The demonstration is impressive, and management asks whether the agent could also update supplier records and initiate payments.
Now consider a different question. If a supplier sends an invoice containing misleading instructions, could the agent change the supplier's bank details? Could it retrieve confidential information belonging to another department? Could it approve the very payment it prepared?
These questions are not primarily about how intelligent the AI model is. They are about what the surrounding application permits it to do. A conventional chatbot that explains a policy presents a different risk from an agent that can modify a financial record or send information outside the organisation.
AI agent identity and access control provide the foundations for answering those questions. The objective is not to prevent useful automation. It is to give an agent enough authority to complete legitimate work without granting unnecessary access to the wider business.
An agent's name is not its security identity
Identity establishes which authenticated principal is making a request. Authentication verifies that identity, while authorisation determines whether the principal may perform the requested operation on a particular resource.
An agent might be called the Finance Assistant in its user interface. That name and its instructions describe its purpose, but they do not prove its identity to the finance system. Its runtime needs a trustworthy machine identity, such as a managed workload identity or a dedicated service principal.
Keep three things separate: the agent's logical identity in the inventory, the identity of the running software that invokes tools, and the credentials used to prove or exercise its authority. A credential can be replaced without changing the agent's business purpose.
Distinguishable agents or execution roles should not indiscriminately share one powerful account. Where several agents run in the same service, introduce enforceable isolation and trustworthy per-agent attribution. A text label supplied by the model is not evidence of which agent acted.
NIST's Zero Trust Architecture separates identity verification from access decisions and rejects trust based merely on being inside a network.[1] The same principle is useful for agentic systems: internal deployment is not permission to access every internal resource.
Whose authority is the agent using?
There are two common operating patterns. In delegated execution, an employee asks an agent to act on their behalf. In application-authorised execution, an agent runs an independently approved task, such as checking outstanding invoices overnight, without requiring a live employee session.
Delegated execution should respect the initiating employee's relevant entitlements and the narrower limits assigned to the agent and the task. An employee who can view invoices for one business unit should not gain access to another unit simply by asking an agent.
OAuth 2.0 Token Exchange, defined in RFC 8693, provides a standard mechanism for exchanging security tokens and can represent both the subject and the acting party where the identity infrastructure supports delegation.[2] A downstream service can then distinguish an employee from the software performing the work.
For unattended execution, grant the workload its own explicitly approved permissions rather than preserving a departed employee's account or indefinitely reusing their session. Assign an accountable business owner and a process for reviewing that authority.
In both cases, the agent cannot expand its authority by claiming that a task is urgent, that a manager has authorised it or that another agent requested the action. Those claims must be established independently.
Design permissions around the work, not the application
Giving an agent access to a customer relationship management system is too broad a description of its permissions. Can it read customer records, amend contact details, export an entire database or delete a record? Those actions carry different business consequences.
Role-based access control (RBAC) assigns permissions through defined roles, such as invoice reader or payment preparer. Attribute-based access control (ABAC) adds context, such as business unit, data classification, transaction amount or resource ownership. Combining the two can make access more precise without creating a separate role for every possible situation.
Apply least privilege across several dimensions: which tools are available, which operations they support, which records and fields can be accessed, which destinations may receive information and how long authority lasts.
Prefer short-lived, narrowly scoped access credentials over persistent shared secrets when the infrastructure supports them. RFC 9700 recommends limiting OAuth access tokens to necessary privileges and intended services, and using sender-constrained tokens to reduce the risk of replay where supported.[3]
Keep credentials inside the trusted execution environment. Do not place access tokens or passwords into prompts, conversational memory or model-generated tool arguments. Tools should obtain credentials through the authorised runtime, and the receiving service should validate them. Short expiry alone does not prevent misuse during a token's lifetime.
A permission check belongs between intent and action
A language model can help select a tool and propose arguments. It should not decide whether its own request is authorised. Treat the proposed operation as untrusted input to a separate execution layer.
A practical request path is: authenticated agent and user context → proposed tool call → policy evaluation → required human approval → scoped execution → recorded outcome.
The policy enforcement component should validate the requested operation and its parameters against trusted identity and policy information. The target application, or an enforcement layer protecting it, must also enforce resource and record-level permissions. A gateway cannot compensate for a separate route that bypasses its controls.
For example, a refund tool may accept an order identifier and amount. The execution service should establish that the order belongs to the permitted account, that the amount falls within applicable limits and that any required approval is valid. It should not trust a model-generated flag claiming that the refund was approved.
Bind approval to the exact operation, relevant parameters, approver and expiry. If the amount or destination changes, require fresh approval. Recheck entitlements and current business constraints before executing, even if the agent obtained permission earlier in the workflow.
If authorisation cannot be established, stop the operation and return a clear exception. For retried operations that modify records or initiate transactions, use durable operation identifiers and appropriate idempotency controls so repeated execution does not unintentionally repeat the business action.
How the boundaries work in an accounts payable team
Consider the proposed invoice agent. Give it read access to invoices and purchase orders within its assigned business unit. Permit it to create a discrepancy case and prepare a payment proposal in a controlled staging area.
An independent finance approver reviews the proposed transaction against the evidence. A dedicated payment service checks the approval and executes only the authorised operation under its own tightly controlled identity. The agent cannot approve its own proposal or change supplier bank details as part of invoice processing.
Supplier master-data amendments should follow a separate workflow with independent verification. An invoice, email or document is evidence to be processed, not a trusted instruction to expand the agent's authority.
Such a design may allow finance staff to spend less time reconciling routine records while retaining oversight of consequential decisions. Measure review effort and exception rates rather than assuming the agent will automatically improve productivity.
The approach works because the permitted actions are determined by the business process. The agent assists with reasoning and preparation; independently enforced controls determine which operations can affect financial systems.
What changes when several agents work together?
A coordinator might ask a research agent to retrieve documents, a finance agent to reconcile figures and a reporting agent to prepare a summary. It is tempting to make every participant inherit the coordinator's access for convenience.
That creates an unnecessary concentration of authority. Each participant should receive only the information and permissions needed for its assigned step. A research agent does not need write access to the finance platform merely because the coordinator can request a finance operation.
OWASP identifies identity and privilege abuse as a specific risk in agentic applications, including inappropriate inheritance of permissions through delegation.[4] Agent-to-agent requests should therefore carry authenticated provenance and pass explicit authorisation checks at each trust boundary.
Where an agent retrieves a document, enforce access before returning its contents to the model. Apply suitable restrictions to cached data, shared memory and downstream disclosures as well. Otherwise, correctly protected source systems may still be undermined by information copied into a more widely accessible context.
For simple, predictable processes, a deterministic workflow may provide a better solution than multiple autonomous agents. Fixed steps, limited service permissions and explicit exception handling are often easier to test and govern.
What happens when access must be withdrawn?
An agent can continue processing tasks after a person has changed roles, an approval has expired or a security incident has occurred. Build a lifecycle around each agent identity rather than treating credential issuance as a one-off deployment activity.
Maintain an inventory linking agent purpose, owner, environment, execution identity, connected systems and approved permissions. Review grants when tools or business responsibilities change. Decommission unused identities and remove their access.
Design a way to suspend the agent, prevent new tool calls and withdraw relevant credentials. Token expiry, introspection, revocation and policy rechecks have different behaviour across identity platforms. Token exchange itself does not guarantee that withdrawing an original token invalidates every downstream credential.[2]
Test how quickly a suspension takes effect, including queued operations and active sessions. For high-impact actions, execution-time checks against current policy and approval state can reduce reliance on long-lived permissions. A completed external transaction cannot necessarily be reversed simply by revoking the agent's access.
Can you explain what the agent did yesterday?
Audit records should make it possible to reconstruct a consequential action: the initiating person or scheduled job, authenticated acting identity, target resource, operation, policy version, decision, approval reference, correlation identifier and execution outcome.
Do not indiscriminately record raw prompts, access tokens or confidential document contents. Protect audit evidence with access restrictions, suitable retention and tamper-resistant storage, while recording enough structured information to investigate exceptions.
Measure the percentage of deployed agents with an identified owner and reviewed access profile; the proportion of sensitive operations with attributable approvals; the number of excessive permissions detected; and the time required to disable an agent's effective access. Monitor task completion, review time and false denials alongside security measures.
Before rollout, test whether an agent is prevented from crossing business-unit boundaries, performing an unapproved write, using expired authority or repeating a completed financial operation. Include misleading content in evaluation inputs and verify that the resulting action remains constrained. A successful happy-path demonstration does not prove the controls operate effectively.
Clear ownership matters as much as technology. The business owner defines permitted outcomes, engineering implements enforcement, security manages identity and access standards, and the appropriate assurance functions independently challenge the design and evidence.
Start with the smallest useful authority
If your organisation is preparing to deploy an AI agent, begin by listing every business system it can reach and every action it might perform. Mark each action as permitted, subject to independent approval or prohibited. Then identify the controls that actually enforce those boundaries.
Existing enterprise identity and access management (IAM), API gateways and workflow systems may already provide much of the necessary infrastructure. A dedicated agent identity platform becomes worth considering when identity isolation, cross-system delegation, revocation or policy consistency cannot be managed adequately with those capabilities.
If you are evaluating an agentic AI initiative, a focused discussion about the proposed tasks, permissions, existing identity architecture and approval model can help identify a proportionate approach before expanding access.
The goal is not an agent that can do everything an employee can do. It is an agent that can reliably do the work it has been authorised to do, and leave evidence of how it did it.
References and further reading
[1] National Institute of Standards and Technology (2020). Zero Trust Architecture, NIST Special Publication 800-207. Source: https://www.nist.gov/publications/zero-trust-architecture
[2] Internet Engineering Task Force (2020). RFC 8693: OAuth 2.0 Token Exchange. Source: https://www.rfc-editor.org/rfc/rfc8693.html
[3] Internet Engineering Task Force (2025). RFC 9700: Best Current Practice for OAuth 2.0 Security. Source: https://www.rfc-editor.org/rfc/rfc9700.html
[4] OWASP Gen AI Security Project. Top 10 for Agentic Applications 2026, ASI03: Identity and Privilege Abuse. Source: https://genai.owasp.org/agentic-applications-2026/asi03-identity-and-privilege-abuse/
Apply the approach
Consider an accounts payable agent that reads invoices, reconciles purchase orders and prepares payment proposals. Its access policy distinguishes routine preparation from independently approved execution and separately controlled supplier master-data changes.
Read only the records and fields required for reconciliation within the agent's approved business unit.
Create a draft in the approved staging workflow; the proposal does not release funds.
The agent has no direct payment-release permission. A controlled payment service executes only after verifying the independent approval and current transaction constraints.
Use the separate supplier master-data change process with independent verification.
Put the approach into practice
- 01Inventory agent identities, accountable owners, connected systems and business actions.
- 02Separate workload identity from delegated user authority and define resource-level permissions.
- 03Implement external policy enforcement, limited credentials and independently verified approvals.
- 04Test denied operations, misleading inputs, cross-boundary access, revocation and duplicate writes.
- 05Review production audit evidence, permission changes, task completion and review effort before granting wider autonomy.
Frequently asked questions
Does every AI agent need a separate identity?
Every agent or execution role needs attributable, enforceable authority. A dedicated workload identity is preferable for distinct trust boundaries. Shared infrastructure can be suitable if it provides trusted per-agent attribution and permission isolation; a model-generated name is not sufficient.
Can an AI agent use an employee's existing permissions?
Yes, through controlled delegated access where supported. The agent should receive only the portion of the employee's relevant permissions required for the approved task, subject to its own limits. It should not receive unrestricted access to the employee's account or credentials.
Is an API key enough to secure an AI agent?
An API key may authenticate a caller to a service, but a broadly privileged shared key does not provide fine-grained access control or reliable individual attribution. Use dedicated identities, appropriately restricted credentials, resource-level enforcement and lifecycle controls.
Does human approval prevent all unauthorised actions?
No. Approval needs to come from an authorised person, apply to the exact proposed operation and be enforced by trusted software. Data access, tool misuse and credential leakage can still cause harm even when a separate approval step exists.
Can existing enterprise IAM support AI agents?
Often, existing workload identities, service principals, OAuth infrastructure and application-level controls can provide useful foundations. Assess whether they support the required isolation, task-specific delegation, revocation and auditability across the systems the agent will use.