Acting as a user means each tool call is tied to the real employee behind the request, so access changes follow that employee immediately. Acting through a shared service account hides identity, weakens attribution, and often grants broader standing access than needed. For governance, user-bound access is easier to audit and revoke.
Why This Matters for Security Teams
For AI agents, the choice between acting as a user and acting through a shared service account is really a choice between accountable, bounded access and pooled, opaque authority. User-bound execution preserves attribution, accelerates revocation when someone changes roles, and makes audit trails meaningful. Shared service accounts often become a convenience layer that quietly expands standing privilege and masks which human initiated a risky tool call.
That matters because agentic systems do not behave like fixed application jobs. They chain tools, react to new context, and can amplify a minor request into broad system access if the identity boundary is weak. NHIMG’s OWASP NHI Top 10 and the external OWASP Agentic AI Top 10 both point to identity and authorization as first-order risks, not administrative details. In practice, many security teams discover the cost of shared accounts only after an incident forces them to reconstruct which request actually triggered the blast radius.
How It Works in Practice
Acting as a user means each agent action is executed with an identity that maps to a specific employee, workload, or delegated session. That enables per-user policy, immediate access removal, and meaningful non-repudiation. For high-risk tools, current guidance suggests using short-lived, task-scoped credentials rather than persistent tokens, especially when the agent can read, transform, and launch follow-on actions without human review.
Acting through a shared service account centralizes access but weakens control. The account often accumulates permissions for every workflow it supports, which makes least privilege difficult to maintain. A better pattern is to separate three things:
- the human requester, so approvals and accountability remain visible;
- the agent workload identity, so the system can prove what is executing;
- the downstream credential, so access is issued only for the specific task.
That is where workload identity and runtime authorization become important. Standards-based approaches such as NIST AI Risk Management Framework and CSA MAESTRO agentic AI threat modeling framework support the idea that policy should be evaluated at request time, not inferred from a shared login. NHIMG’s LLMjacking research highlights why this matters: when credentials are exposed, attackers move quickly. Once a shared account is compromised, every agent using it inherits the same exposure. These controls tend to break down in legacy environments where agents must call many systems that still only accept one shared API key or one broad robot account.
Common Variations and Edge Cases
Tighter user-bound controls often increase integration overhead, requiring organisations to balance traceability against the friction of per-user delegation. That tradeoff is most visible in environments with batch automation, long-running agents, or toolchains that cannot yet handle ephemeral tokens cleanly.
There is no universal standard for this yet, but best practice is evolving toward user attribution plus delegated workload identity, not anonymous shared access. Shared service accounts can still be acceptable for low-risk, non-sensitive background jobs when the action set is fixed and tightly monitored. They become much harder to justify when an agent can browse, retrieve secrets, modify records, or trigger other systems.
Two practical edge cases stand out. First, some platforms support only coarse service-account authorization, so organisations compensate with network controls, approval gates, or separate environments. Second, multi-agent systems can blur the line between the requesting user and the executing agent, which makes audit design more important than the login method itself. NHIMG’s The State of Secrets in AppSec and external NIST SP 800-53 Rev 5 Security and Privacy Controls both reinforce that secrets sprawl and weak accountability are operational problems, not theoretical ones.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A01 | Identity and runtime authorization are core agentic AI risks here. |
| CSA MAESTRO | IAM | MAESTRO addresses agent identity, delegation, and tool access governance. |
| NIST AI RMF | AI RMF covers governance for accountability and access risk in AI systems. | |
| OWASP Non-Human Identity Top 10 | NHI-01 | Shared service accounts create weak attribution and identity sprawl for NHIs. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access control directly applies to agent and service accounts. |
Replace pooled identities with uniquely attributable, least-privilege non-human identities.
Related resources from NHI Mgmt Group
- What is the difference between service account governance and AI agent governance?
- What is the difference between managing service accounts and managing AI agents?
- What is the difference between AI agent security and standard service account management?
- What is the difference between an AI agent and a normal service account?