Agent Identity per Instance or per Agent Type: How Granular Should It Be?
For most regulated enterprises, the workable answer is a hybrid. Issue a type-level identity that carries permissions and policy, and attach an instance-level identifier that is linked to it for attribution. Use fully separate per-instance identities where one running agent must be contained, revoked, or evidenced on its own. Use per-type identity alone only when instances are interchangeable and low risk.
Questions to settle before you decide
- Can we attribute each action to a runtime instance, the agent type, and the delegating user?
- Can one instance be revoked or contained without disabling the whole agent type?
- How are credentials issued, scoped, rotated, and expired for ephemeral or autoscaled agents?
- Which identity attributes does policy evaluate at each tool call or MCP access?
- Is evidence recorded against the identity presented on each request, and for how long is it retained?
- Which changes preserve an agent's identity, and which create a new one?
What identity granularity means for AI agents
OWASP describes agent identity as two things together: the agent's defined persona and the authentication material that represents it, such as API keys, OAuth tokens, and delegated user sessions. Granularity is the question of how many running things share that identity.
A per-type identity belongs to an agent definition or role. Every instance of that agent presents the same identity. A per-instance identity belongs to one running agent, with its own credentials, created when the instance starts and retired when it stops. A hybrid keeps a persistent type-level identity and links instance-level identifiers and credentials to it.
Current guidance is clear on the principle and open on the unit. NIST's design tenets for agent identity management call for unique, cryptographically verifiable identification of agents, distinguishable from human users and service accounts, with an identity, credential, and access management lifecycle distinct from human principals. They note that unique identities limit broad impersonation of a human or service account and improve traceability to the specific software component. NCCoE material, however, still poses as open questions whether identity metadata should be ephemeral or fixed, and whether identities should be tied to hardware, software, or organizational boundaries. Granularity is therefore an architecture decision that your team should document, not a settled standard to adopt.
Comparing the tradeoffs
The table compares per-type and per-instance identity on the five criteria that usually decide the question. The hybrid model aims to take the type-level column for authorization and the instance-level column for attribution.
- Attribution: Per type: actions resolve to the agent definition, not to the copy that acted. Per instance: actions resolve to one running agent, which supports incident review.
- Least privilege: Per type: one permission set for all instances, so it must fit the broadest instance. Per instance: scope can be narrowed to the task or delegating user, at the cost of more policy to author.
- Revocation: Per type: revoking disables every instance. Per instance: one compromised or misbehaving agent can be contained while others continue.
- Credential lifecycle: Per type: few credentials to rotate and store. Per instance: many credentials, which requires automated issuance and expiry, especially for autoscaled agents.
- Operational overhead: Per type: simpler registration and policy authoring. Per instance: more identities to inventory, correlate, and retire, and more policy exceptions to manage.
The hybrid pattern: type for policy, instance for attribution
A comment submitted on NIST's design tenets proposes separating an agent's persistent identity from its credentials and its runtime instances. In that proposal, a logical agent has one persistent identity, and credentials and deployment-specific identities are verifiably linked to it. This is a commenter's proposal, not adopted NIST guidance, but it maps well onto what practitioners need.
In a hybrid, permissions, tool access, and policy attach to the type-level identity, so authoring stays tractable. Each running instance receives an identifier and short-lived credentials that are cryptographically tied to that type. Audit records then carry both: what the agent was allowed to do, and which instance did it. OWASP recommends per-agent identities with short-lived, narrowly scoped per-task tokens, such as mTLS certificates or scoped tokens, to limit blast radius. The hybrid satisfies that recommendation while keeping the permission model at the type level.
Two supporting decisions matter. First, define identity continuity: which changes preserve an agent's identity and which create a new agent. Without that rule, historical audit evidence becomes ambiguous. Second, link every agent identity to the delegating user. NCCoE material calls for this to support delegation controls and accountability. For agents that interact with natural persons, the European Commission's Article 50 guidelines expect disclosure of the agent's artificial nature and of the person on whose behalf it acts. The same guidelines acknowledge that a provider may not be able to identify individual interaction instances in advance once an agent is deployed in different contexts. That is a practical argument for generating instance identifiers at runtime rather than pre-registering them.
Choosing a granularity for your architecture
Start with attribution requirements. If an incident reviewer must be able to say which running agent made a specific call, a type-level identity alone is insufficient. OWASP's warning applies here: an agent without a distinct, governed identity operates in an attribution gap that makes true least privilege impossible to enforce.
Then look at how much instances differ. Per-type identity is reasonable when instances are stateless, run identical logic, hold the same permissions, and act on low-consequence resources. Move toward per-instance or hybrid when instances act for different delegating users, hold different data scopes, run for long periods, or can take actions that you would want to stop individually.
Ephemeral and autoscaled agents shift the problem from manual management to automation. Issuing short-lived, just-in-time, narrowly scoped tokens reduces dependence on explicit revocation, because credentials expire on their own. Secrets belong in approved vaults, not in code, prompts, or configuration files. SCIM is worth evaluating as a way to create, update, and revoke agent identities across systems, but it provides neither authentication nor authorization, so it complements rather than replaces the credential mechanism.
Finally, treat the decision as reversible only at a cost. Retrofitting instance identifiers into audit records after the fact does not recover attribution for actions already taken.
How identity drives policy enforcement at the tool call
Identity granularity matters most at the moment an agent calls a tool or reaches an MCP server. A policy decision can only key on attributes that arrive with the request: agent type, instance, delegated user, scope, and task. OWASP names delegation chains, role inheritance, cached credentials, and agent-to-agent trust as escalation paths, and recommends a centralized policy engine that re-verifies each privileged step.
Trussed enforces policy in the execution path, at runtime and not as a review after the fact, on individual interactions and tool calls across models, agents, tools, and MCP servers. Outcomes are allow, redact, block, rate limit, or escalate for human approval. The enforcement produces audit-ready evidence, and that evidence is tied to whichever identity the request presents.
That dependency is the point for architects. If requests present only a type identity, a rate limit throttles every instance together and the evidence records the type. If requests also carry an instance identifier and delegated user, a block or escalation can be applied to one instance, and the record shows which instance and which user were involved. The enforcement layer can only be as precise as the identity it is given.
Three identity granularity models
Per type
One identity for an agent definition or role, shared by every running copy.
Per instance
A separate identity and credential set for each running agent.
Hybrid
Type-level identity for permissions and policy, plus a linked instance identifier for attribution.
See how identity shapes enforcement and evidence
Review how policy is enforced in the execution path on agent interactions and tool calls, and how the resulting audit-ready evidence ties to the identity presented.
Explore Agent and Tool-Call Enforcement