Subscribe to the Non-Human & AI Identity Journal

On-behalf-of Context

The delegation information that shows which user, service, or agent initiated an action and which identities acted in the chain. It matters because agent authentication alone does not explain accountability, and without this context incident response cannot reliably trace who caused the change.

Expanded Definition

On-behalf-of context is the delegation trail that preserves who started an action and which identities, services, or agents carried that action forward. In NHI and agentic systems, it is the difference between seeing a valid credential and understanding the accountable chain behind the request.

This concept is broader than simple impersonation logs. A service account may execute a workflow on behalf of a user, or an AI agent may invoke tools using delegated authority from an upstream system. The important question is not only whether the actor authenticated, but whether the system retained the original initiator, the intermediate identity, and the scope of delegated authority. That is why on-behalf-of context belongs alongside identity proofing, authorization, and audit logging in the NIST Cybersecurity Framework 2.0 view of traceability and access governance.

Definitions vary across vendors when they describe tokens, delegation claims, and actor chains, so organisations should treat the term as an operational accountability requirement rather than a single protocol feature. The most common misapplication is assuming agent authentication alone is sufficient, which occurs when logs capture the calling workload but omit the original user or upstream service that authorised the action.

Examples and Use Cases

Implementing on-behalf-of context rigorously often introduces logging and token-propagation overhead, requiring organisations to weigh stronger accountability against added integration complexity and telemetry volume.

  • A user approves a purchase workflow, and a downstream automation service updates the ERP record while preserving the user identity, the workflow service, and the final executor in the event trail.
  • An AI agent retrieves customer data through a tool call, but the platform records the initiating analyst, the agent identity, and the exact delegated scope for every retrieval.
  • A privileged admin delegates a short-lived task to a maintenance job, and the job logs show the admin origin plus the job identity that performed the change.
  • A support portal triggers password resets through an orchestration layer, and the audit record keeps the customer request, the portal service, and the credential-reset service linked together.
  • For implementation patterns and common failure modes, the Ultimate Guide to NHIs is useful alongside external identity guidance, especially where delegated access and service-account sprawl overlap.

Where protocol specifics matter, teams often map this to bearer-token exchanges or contextual claims in distributed systems, but no single standard governs this yet across every agent stack. The key design goal is durable propagation of origin identity across hops, not merely a local log entry at the first service boundary.

Why It Matters in NHI Security

Without on-behalf-of context, investigations quickly collapse into “which machine did it,” which is not enough when an API key, service account, or agent has acted under delegated authority. That gap creates weak attribution, broken non-repudiation, and slow containment when a workflow changes data, escalates privilege, or exfiltrates secrets through an apparently legitimate chain of execution.

The scale of the problem is amplified by NHI sprawl. NHI Mgmt Group reports that NHIs outnumber human identities by 25x to 50x in modern enterprises, which makes delegated actions far more common than many access reviews assume, especially when teams are tracking service accounts without full visibility, as noted in the Ultimate Guide to NHIs. In practice, on-behalf-of context helps security teams answer whether a high-impact action was truly initiated by a person, an agent, or an automated chain that inherited authority too broadly. The same traceability expectation aligns with NIST Cybersecurity Framework 2.0 governance and detection outcomes.

Organisations typically encounter the cost of missing on-behalf-of context only after a suspicious change, fraud event, or data exposure, at which point the delegation chain becomes operationally unavoidable to reconstruct.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-06 Delegation chains are essential to trace NHI actions back to the true initiator.
NIST CSF 2.0 DE.CM-1 Security monitoring needs full actor context to support trustworthy detection and investigation.
OWASP Agentic AI Top 10 AGENT-04 Agent tool use requires clear provenance of who directed the agent and who executed the call.

Log originator and acting identity for delegated actions so detections can be investigated end to end.