Non-human & AI agents

Service accounts, API keys and AI agents

The wiki page nobody updates, the token nobody rotates, and the MCP server your engineering team shipped last quarter. What governs them instead.

Non-human identity governance in Iden gives every service account, API key, OAuth grant, MCP server and AI agent what a person's account already has: an owner by name, a recorded scope, an expiry, and a place in the access review. It is the joiner-mover-leaver discipline applied to the identities nobody thinks of as identities.

Take an MCP server someone on your engineering team deployed last quarter. It authenticates with a token created by a developer who has since changed teams. It can read your production database and post to Slack. It does not appear in your IdP, it was never offboarded when its author moved on, and it is not in your access review. Today you probably cannot say who owns it, what it can reach, or what it has done.

You have more non-human identities than you think

Non-human identity is not new. Every company has service accounts. What has changed is how fast they get created and who creates them.

The service account wiki page.

Last edited by someone who left. It lists six of the fourteen accounts that exist.

The token in the config.

Created for a migration, never rotated, still valid, still reaching production.

The OAuth grant nobody registered.

An engineer connected a tool to Google Workspace on a Tuesday and it has been reading mail ever since.

Iden's Identities screen: 433 identities tabbed as Human 321 and Non Human 112, with service accounts and an MCP token listed in the same table as employees, each showing team and the apps it can reach.

433 identities. 321 human, 112 not. cc_github and the MCP token sit in the same table as Amy Lee, with the same columns and the same offboarding states.

In Iden, human and non-human are 2 tabs of one list. That screen shows 433 identities, 112 of them not people, in the same table with the same columns and the same offboarding states.

These accumulate for structural reasons, not careless ones. A service account is created to unblock something, at the moment somebody is trying to ship. There is no joiner process, no manager, no HR record, and nothing that will ever generate an event saying it should stop.

So the population only grows, and every one of them is a credential that works.

3 things AI agents changed

The decision moved to runtime. A service account does what it was programmed to do, so the code review was the control. An agent decides what to do when it runs, which turns the scope you granted from a backstop into the entire boundary.

The action surface got wider. A service account calls one API. An agent holds a set of tools and composes them, and the risk lives in combinations nobody enumerated when each tool was approved separately.

The lifecycle got shorter. Agents get created in an afternoon by whoever needed one. They outlive the project, the sprint and often the person, because nothing about them expires.

4 things every non-human identity needs

1A named owner

The owner is a named person, not a team, and that person answers for what the identity does.

Ownership is the control everything else hangs off. An agent with no owner cannot be reviewed, because nobody can say whether its access is still needed, and it cannot be offboarded, because nothing connects it to anybody's departure.

Iden makes ownership required, so an agent whose owner leaves does not become an orphan. It appears in that person's offboarding as an item needing reassignment, and the exit stays open until it is reassigned.

That only works because agents and people are in the same system, and it is the strongest argument against buying a separate tool for non-human identity. The moment agents live somewhere else, the link between a departure and an orphaned credential has to be maintained by hand, which is the failure you were trying to fix.

2Scope that is enumerated

A token that can read the production database can read all of it. An agent that needs 3 tables should reach 3 tables.

Iden records every grant a non-human identity holds the way it records a person's: what it can reach, which policy allowed it, and who approved it. That record is what makes review possible, because you can put an agent's actual capabilities in front of its owner rather than the name of a role.

Salesforce accounts inside Iden, listing users with their role, profile, licences and permission sets, with three integration users appearing inline among the people.

One app's accounts. billing@, hs-syn@ and an MCP integration user are in the list with everybody else, carrying the same profiles and permission sets.

3 of those Salesforce accounts are not people. They carry the same profile, the same licence and the same permission sets as everybody listed above them, which is the only way to answer what an integration user can reach without going and reading a config file.

3Credentials that expire

The token that never rotates is the most common finding in this category and the one with the longest tail: issued in an afternoon 2 years ago, still valid, still reaching production.

Short-lived credentials issued per session are the right ceiling. Where an agent has to hold a long-lived one, it carries an expiry and an owner who is told before it lapses.

4A log that separates the agent from the person

This is the attribution gap, and it is the part most stacks get wrong.

An agent acts on behalf of a user. In an Okta-style or Entra-style log you see one actor: either the agent, in which case the human vanishes, or the human, in which case the agent does. Neither tells you what happened.

These 3 cases look identical in that log and are not:

  1. The user asked for exactly this action.
  2. The user asked for something broader and the agent chose this as a step.
  3. The agent did it on a schedule and the user was not involved at all.

Closing the gap needs the agent identity, the human it acted for, the session that connects them, and what the agent was asked to do. Iden records all 4, so an incident review can reconstruct the chain rather than guess at it.

Non-human identities in the same access review

An Iden access review for Retool under a SOC 2 campaign, 57 pending and 43 done, listing each user with employment status, department, role and groups, with approve and revoke on every row.

A SOC 2 review of one app. Two rows are flagged because the employee is Inactive in HR and still holds access, and three of the rows are not people.

They get reviewed like everybody else. 3 rows in that campaign are not people, and they are in it because a service account holding access nobody has looked at in 2 years is the oldest and broadest grant in most estates. They go into the same user access review as the people.

AI agents that call Iden

Everything above treats your agents as identities that need governing. The other half of the problem runs the opposite way: your agents can call Iden, and for routine identity work that is where the work should happen.

An engineer in a coding session needs a teammate added to a service. They do not open an identity console or a ticket form. They say it in the session they are already in, their agent resolves the identity, checks which policy applies and files the request, and the engineer never leaves what they were doing.

3 constraints keep that safe.

Access is delegated and never held. An agent calling Iden carries the identity of whoever invoked it, whether that is the admin running the action or the end user asking for access. It has no standing of its own, which is the same rule this page argues for everywhere else. It would be strange to demand ownership and attribution of your agents and then let ours act anonymously.

It files a request and does not grant one. The model works out what is being asked for, who owns it and which policy applies, then creates an access ticket that follows the approval workflow your admins defined. The intelligence goes into getting the request right, and the decision stays where it was.

Every surface uses the same policy engine. A coding agent, Slack, the console and the API are different doors into one record. Which door the work came through is a field in the log, and the rules are the same for all of them.

Agentic IGA covers this half properly, including how it differs from an assistant living inside a vendor's product.

What actually changes

A wiki pageWith Iden
OwnershipWhoever created itA named person, required
Credential lifetimeUntil something breaksShort-lived, or an expiry with an owner
ScopeWhatever was easiestEnumerated, and reviewable
When the owner leavesIt becomes an orphanIt appears in their offboarding
Audit trailThe agent, or the humanThe agent, the human, and the session

What still needs a person

Deciding whether a broad scope is correct stays with the owner. Plenty of agents legitimately need more access than looks comfortable, and the answer is a recorded exception with a name on it rather than a reduction nobody discussed that breaks a pipeline.

Iden also does not stop an agent doing something stupid inside its scope. Governance decides what an agent can reach, not whether each action was wise. That is a different control, and it mostly lives in the runtime.

It does not discover what you never connected. An agent authenticating with a static key against an app Iden has no connector for is invisible, the same as any other access in an unconnected app.

And it does not settle the standards question. SPIFFE, workload identity federation and the MCP authorisation spec are all moving, and anybody claiming this is a solved layer is selling something. The stable part is the layer above the substrate: ownership, scope, expiry and attribution are required whichever way the plumbing settles.

Frequently asked questions

Anything that holds access and is not a person: service accounts, API keys, OAuth grants, integration users, MCP servers and AI agents. They have no joiner process, no manager and no HR record, so nothing ever says they should stop.

An agent decides what to do at runtime. A service account does what it was programmed to do, so the code review was the control. For an agent, the scope you granted is the entire boundary, and the audit log has to record intent as well as action.

Most audit logs show one actor where there are two. An agent acting for a user appears as either the agent or the user, so you cannot separate what the user asked for from what the agent chose. Iden records the agent, the human and the session that connects them.

Yes. An MCP server is a delegated-authority boundary and is governed as one: it gets an identity, an owner and a scope, and the tools it exposes are entitlements rather than one undifferentiated grant.

Start with OAuth grants nobody registered, API tokens created by people who have since changed teams, and accounts with no owner or matching HR record. That is where agents show up first, usually before anybody calls them agents. Discovery finds the rest as connectors go in.

Yes. An agent calling Iden acts as the person who invoked it and can file access tickets that follow your approval workflows. It cannot grant access on its own authority, because it does not have any.

No, and separating it is the mistake. An agent whose owner leaves has to appear inside that person's offboarding, which only works if agents and people live in the same system.