Skip to content
iamnewuser.com

iamnewuser / Reference

Reference

Agent identity

An AI agent is neither a user nor a service account, and governing it as either one is how most organisations are currently getting it wrong. What follows is the distinction, the delegation patterns, and a way to check what your own agent can reach.

92%Of 383 security leaders surveyed in January 2026 were not confident legacy IAM tools can manage AI and non-human identity risk
78%Have no formal policy for creating or removing AI identities
#1Improper offboarding tops the OWASP Non-Human Identities list
45:1Machine to human identities in a typical enterprise, by one 2025 estimate

Sources in the library.


First principles

Neither a user nor a service account

01

Most agent governance goes wrong at this step. Teams reach for the nearest existing abstraction, and both of them are the wrong shape.

 Human userService accountAI agent
LifetimeYears, tied to employmentYears, tied to an integrationMinutes to weeks, tied to a task nobody logged
What it does nextDecided by a person, predictablyFixed at build timeDecided at run time, by inference
Acts on behalf ofItselfA systemA different person on every invocation
Reads untrusted inputYes, and knows it is untrustedRarely, and in fixed formatsConstantly, and cannot reliably tell
Audit trail reads asA sequence of human decisionsA repeating patternPlausible activity at machine speed
Revocation meansDisable the accountRotate the key, break the integrationWithdraw the credential, and find the other copies
Scope drift comes fromPromotions and transfersChange requestsAdding one more tool, on a Tuesday

The last row is the one that bites. Every other identity type grows its privileges through a process. An agent grows them when an engineer wires in another tool, and the union of what those tools can reach is the agent's real authority — which is why the inspector below asks about tools rather than about roles.


The inspector

What can your agent actually reach?

02 / tool

Tick the tools your agent is wired to. The risk is almost never in any single one — it is in the combination, and the combination is what nobody reviews.

Tools available to the agent

Including the ones added for a demo and never removed.

    Minimum guardrails for this configuration

    In order. The first ones are specific to what you selected.


      Delegation

      Five ways to give an agent authority

      03

      In the order teams actually try them, which is roughly the reverse of the order they should.

      1. A shared API key in the environmentAvoid

        Indistinguishable from any other holder of that key, appears in no inventory, rotates never, and survives every person who knew about it. When the key leaks there is no way to tell which agent, service or laptop used it. This is the configuration behind most non-human identity incidents.

      2. The user's own sessionAvoid

        Convenient, and the audit log now says a person did something a machine did. The agent inherits every entitlement that person has accumulated — including the ones from their last job. Revoking the agent means revoking the person.

      3. A dedicated service accountBetter than nothing

        At least the activity is attributable and the scope can be trimmed. But the credential is still long-lived, the account still sits outside the joiner-mover-leaver process, and the agent still acts with one fixed set of rights regardless of whose request it is serving.

      4. Token exchange, on behalf of the requesterGood

        The agent presents its own identity plus the user's, and receives a token carrying the intersection of the two. The agent can never exceed the person it is acting for, and the audit record names both. This is what the delegation protocols emerging around agentic access are reaching for.

      5. A purpose-bound, short-lived credentialBest

        Issued per task, scoped to the single resource the task needs, expiring in minutes, tied to a named human owner, revocable without breaking anything else, and visible in access reviews like any other entitlement. The agent holds nothing when it is not working.

      The checklist

      Four questions, per agent

      If you cannot answer all four for an agent that is already running, that is the finding.

      1. Who owns it?A named human, not a team alias. Somebody has to be asked when it behaves oddly, and somebody has to recertify it.
      2. What may it do?The union of its tools, written down. Not the intent, the capability — those differ the moment someone adds a tool.
      3. On whose behalf?Its own authority, or a delegated one that cannot exceed the requester. If the answer is "everyone's", it has standing privilege.
      4. When does it stop?An expiry date on the credential and on the agent. An agent with no end date is a permanent identity nobody decided to create.

      Where this leads

      Agents are not a new discipline. They are the existing non-human identity problem, moving faster and making its own decisions about what to ask for.

      Everything that makes a service account dangerous — no owner, no expiry, broad scope, absent from reviews — is worse in an agent, because an agent can be talked into using what it holds. The control is the same control. The urgency is not.

      Watch an agent get used

      Estimate how many agent credentials you will be carrying once a pilot becomes production.