Join our Newsletter — 33% off our NHI Course

Can AI agent on-behalf-of tokens avoid overdelegating authority?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: Akeyless outlines that delegated AI agent access still depends on tokens that can outlive the task and carry too much privilege. For practitioners, that means issuance-time bounds matter more than downstream audit clarity when agents act on behalf of people.

Editorial analysis by NHI Mgmt Group, based on content published by Akeyless: “How an AI Agent Gets Access on a User’s Behalf”.

Key questions

Q: What is the difference between impersonation and delegation in OAuth token exchange?

A: Impersonation makes the downstream resource see the actor as the user, so the intermediary is effectively hidden from the receiving service.

Q: How do token exchange claims affect agent auditing?

A: Token exchange claims change how an audit trail attributes delegated actions because they can carry the original subject, the acting client, and the token audience.

Q: How should teams govern AI agent identities that hold delegated access?

A: Teams should treat each AI agent as a distinct identity with a named human owner, explicit delegated scope, and time-bound credentials for each tool or system it can reach.

Practitioner guidance

  • Define a separate agent authority boundary Set the agent’s maximum runtime authority below the user’s full permissions, even when the user could approve more.
  • Require actor-aware delegated tokens Issue tokens that preserve both the subject and the acting agent so downstream systems can distinguish a person’s authority from an agent’s execution identity.
  • Treat delegated tokens as expiring secrets Keep delegated credentials out of files, debug logs and long-lived caches, and revoke or expire them at task completion.

Bottom line: Delegated AI access solves attribution only when the token records both the user and the agent, and even then it does not automatically limit privilege.

Glossary terms: On-behalf-of access, Prompt Context Exposure, OAuth Token Exchange (RFC 8693), Actor claim

What's in the full article

Akeyless's full blog post covers the operational detail this post intentionally leaves for the source:

  • Request and response examples for OAuth token exchange and on-behalf-of flows
  • Claim-by-claim token decoding, including subject, actor and audience fields
  • Practical comparisons between impersonation, delegation and multi-hop actor chains
  • Implementation caveats for Microsoft Entra and other identity providers

👉 Read Akeyless's analysis of on-behalf-of access for AI agents →

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

Delegated authority is not the same as bounded authority: A token that names both the user and the agent solves attribution, but it does not solve how much power the agent should inherit. Akeyless's example shows the same delegated mechanism can still authorize a payment if policy does not cap the task. The practitioner conclusion is that identity binding and privilege bounding must be treated as separate controls, not one control with two outputs.

A few things that frame the scale:

A question worth separating out:

Q: What should teams check before using on-behalf-of flows with AI agents?

A: Teams should verify the grant type, token audience, scopes, and whether the flow preserves a clear human principal behind the agent. They should also confirm the agent only receives a delegated token for the target API, not a broad bearer token, and that revocation, expiry, and audit logging cover each exchange step.

👉 Read our full editorial: On-behalf-of AI agent tokens can still overdelegate authority



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.