Identity and access

Agent identity vs shared service accounts

By Matt Doughty, CEO & Co-Founder of Prefactor ·

TL;DR

Most agents today authenticate as something else — a developer's token or a shared service account. Dedicated agent identity costs more to set up and pays for itself the first time you need to know which agent did what, or need to revoke one agent without breaking five.

DimensionAgent identityShared service account
AttributionPer agent, per versionPer system at best; often just "the integration"
RevocationKill one agent's access instantlyRotating the credential breaks every consumer
Least privilegeScoped to each agent's actual needsUnion of every consumer's needs — over-permissioned by design
Audit answer to "who did this?"Agent X, version Y, on behalf of user Z"Someone using the shared account"
Setup costHigher: per-agent principals, issuance flowLower: reuse what exists
Credential hygieneShort-lived, issued at runtimeLong-lived secrets in config, rarely rotated

The verdict

Shared service accounts are a reasonable way to run one internal agent in a pilot. They stop being reasonable at the first of: a second agent reusing the credential, an agent touching customer data, or an auditor asking for action-level attribution. Plan the migration before one of those arrives, because retrofitting identity onto agents in production is slow exactly when you need it to be fast.

Frequently asked questions

What is the difference between Agent identity and Shared service account?

Most agents today authenticate as something else — a developer's token or a shared service account. Dedicated agent identity costs more to set up and pays for itself the first time you need to know which agent did what, or need to revoke one agent without breaking five.

Is Agent identity or Shared service account better?

Shared service accounts are a reasonable way to run one internal agent in a pilot. They stop being reasonable at the first of: a second agent reusing the credential, an agent touching customer data, or an auditor asking for action-level attribution. Plan the migration before one of those arrives, because retrofitting identity onto agents in production is slow exactly when you need it to be fast.

Is your organisation ready for AI agents?

Take the assessment →