What is delegated agent authorisation?
Delegated agent authorisation passes an AI agent only the narrow part of a user's rights a task needs, for a limited time and with both identities traceable, so it can act for the user; it can never do what the user cannot.
Unlike agent impersonation, where the agent carries the user's identity and systems see the user acting, delegation tokens carry both on whose behalf and by whom an action is taken. The OAuth 2.0 token exchange standard separates the two.
- Topic
- AI security
- Also known as
- Delegated authorization, on-behalf-of authorisation
How delegated agent authorisation works
- The user authenticates and explicitly grants the agent permission for specific resources and actions.
- The authorisation server gives the agent a short-lived token holding only the requested scope and bound to a specific target service.
- The target service checks each request's token audience, scope and the user's current rights; the MCP specification forbids passing tokens through to another service.
- Every action is logged with both identities; consent can be revoked at any time.
In more detail
Multi-hop delegation with RFC 8693 sub and act claims
Under RFC 8693 (OAuth 2.0 Token Exchange), delegation is explicitly represented using the `sub` (subject, the user) and `act` (actor, the agent) claims. When an orchestrator agent delegates further to a sub-agent, nested `act` claims preserve the full call chain for auditing and policy enforcement.
The confused deputy attack and audience binding
Forbidding token passthrough mitigates the confused deputy problem: if a service simply forwards a received token downstream, a compromised middle service could replay broad credentials against unrelated APIs. Each hop must instead validate the `aud` (audience) claim and perform an explicit token exchange for the next target.
Asynchronous agents, approval fatigue and step-up approval
Long-running or background agents may outlive short token lifetimes, while repetitive approval prompts cause consent fatigue. Robust architectures pair Rich Authorisation Requests (RFC 9396) or policy-preapproved read scopes with mandatory step-up human confirmation before state-changing or financial write actions.
Verifying the agent's own workload identity
Before issuing a delegated token, the authorisation server must cryptographically verify the agent's own workload identity, for example via mTLS, OAuth client assertions or SPIFFE/SPIRE, so an unauthorised script cannot claim to be a trusted corporate agent.
Commonly confused terms
| Term | How it differs |
|---|---|
| Agent impersonation | In impersonation, the agent adopts the user's identity directly so downstream services see only the user; in delegation, the token records both the user (sub) and the acting agent (act), preserving accountability. |
| Machine-to-machine and service account authorisation | M2M authentication (such as OAuth 2.0 client_credentials) grants an agent its own static service permissions independent of any user, whereas delegated authorisation ties the agent's actions to a specific user's permissions and consent. |
| Authentication | Authentication verifies who the user or agent is; delegated authorisation governs which narrow resources and actions the verified agent is permitted to perform on the verified user's behalf. |
Why delegated agent authorisation matters for on-premises AI
As agents act for employees in email, documents and business applications, how rights are delegated becomes central to security. With a user's password or broad token an agent can do anything the user can, indistinguishably. Narrow, short-lived, target-bound tokens limit this risk; tokens carrying who acts for whom make oversight and incident review possible.
An insurer's agent reads claim files and prepares summaries for an employee; it gets a one-hour token scoped to reading files in that employee's region, with actions appearing in system logs under both the employee's and the agent's identity.
Common questions
How does delegation differ from impersonation?
In impersonation the agent looks like the user and actions cannot be told apart. In delegation the token carries both user and agent, so actions stay traceable.
Can an agent be given the user's password or a full token?
It should not. The agent should work only with a narrow, short-lived token bound to the target service.
Related terms
- Agent privilege abuse
- AI agent identity
- MCP authorisation
- AI excessive agency
- Permission-aware retrieval
- Agent impersonation
Sources
- IETF, RFC 8693: OAuth 2.0 Token Exchange
- South et al., Authenticated Delegation and Authorized AI Agents, 2025
- Model Context Protocol, Specification 2026-07-28: Authorization
In the glossary: Glossary, D to L