Use per-user OAuth only when the autonomous agent truly needs to act within each user’s own authority, and bind every token to a named human owner, least-privilege scopes, short lifetimes, and revocation on role change or offboarding. If the agent is making independent decisions, separate delegated user access from any service account used for orchestration, and log every tool call against the user context.
When per-user OAuth is the right model for MCP integrations
Per-user OAuth is the right choice when the agent must perform actions that are legitimately tied to each person’s own access, data, or approvals. In that model, the token is not a generic robot credential, it is a delegated representation of a named user. That makes scope design, token lifetime, revocation, and auditability central to the integration’s security posture.
The practical question is whether the agent is doing user-specific work or acting as an independent automation. If the answer is “user-specific,” the OAuth grant should reflect that delegation clearly, and the surrounding MCP design should avoid mixing that user context with broader orchestration privileges. The RFC 6749: The OAuth 2.0 Authorization Framework remains the baseline reference for delegated authorization, while the Model Context Protocol authorization specification is the more direct guide for how MCP servers should handle audience-bound tokens and authorization boundaries.
For teams implementing this pattern, the key design choice is whether the agent should carry a user’s permissions end to end or whether the platform should translate a user request into a narrower, server-side action path. Where the agent must act on behalf of a user, use the user token only for the user-bound operations and keep any orchestration credential separate. Where the action is system-owned, do not stretch per-user OAuth to cover it.
How to keep delegated user access from becoming overbroad
Per-user OAuth is safest when each token is treated as a tightly scoped, short-lived capability. That means binding the token to a named human owner, limiting scopes to the minimum required for the specific tool call, and ensuring the token cannot silently outlive the user relationship that justified it. The difference between a clean delegation model and an access sprawl problem is usually scope discipline, not the OAuth flow itself.
Two controls matter most in practice. First, reduce the token’s authority so the agent can only do the exact user-level operation the workflow requires. Second, make lifecycle events real, not theoretical, by revoking access promptly on role change, termination, or offboarding. Teams often get the first part approximately right and the second part wrong, which leaves delegated access active long after the human relationship has changed.
For MCP specifically, this is where the distinction between user-delegated access and service orchestration becomes operationally important. If the agent needs independent standing to schedule jobs, poll systems, or coordinate workflow steps, those duties belong in a separate service account or equivalent non-user identity. That separation preserves accountability and keeps user tokens from becoming an all-purpose backdoor for automation.
What to log, separate, and review when agents act in a user context
Logging is not optional when a tool can act under a person’s authority. Every tool invocation should be attributable to the user context that justified it, including which tool was called, what scope was used, and whether the action was initiated by the agent or explicitly approved by the user. Without that evidence, delegated access becomes hard to investigate, hard to revoke cleanly, and hard to defend during incident review.
That same audit trail should also make the boundary between delegated user action and autonomous orchestration visible. If the agent can make independent decisions, teams need to be able to distinguish “the user authorized this” from “the platform executed this.” The RFC 8693: OAuth 2.0 Token Exchange and the RFC 8707: Resource Indicators for OAuth 2.0 are both useful references when teams need to make delegation explicit and keep tokens audience-bound rather than broadly reusable.
The review question is not only whether the agent behaved correctly, but whether the authorization model still matches reality. If the tool call history shows broad reuse, repeated consent prompts, or user tokens being used for background orchestration, the model is drifting and should be redesigned before it becomes a privilege problem.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-8 — Identification and Authentication (Non-Organizational Users) | Per-user OAuth delegates access tied to named human users. |
| IA-5 — Authenticator Management | The question centers on token lifetime, rotation, and revocation for OAuth credentials. | |
| AU-2 — Event Logging | Per-user tool calls need traceable audit events for accountability and review. | |
| Recommendation — Bind delegated user tokens to verified external identities and revoke them when the user relationship changes. Enforce short-lived tokens, rotation, and prompt revocation for delegated OAuth grants. Log each tool call with user context, scope, and action outcome for auditability. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Delegated agent tokens can become overprivileged if scopes are too broad. |
| Recommendation — Reduce delegated OAuth scopes and remove any unnecessary standing access. | ||
Practitioner Guidance
Decision rule: Use per-user OAuth only for actions that truly need the user’s own authority. If the workflow can be expressed as system-owned automation, keep it on a separate orchestration identity and do not force user delegation into that path.
What to verify: Confirm that every delegated token has a named owner, the narrowest practical scope, a short lifetime, and a documented revocation trigger tied to role change or offboarding. If any of those are missing, the integration is not yet operating as a controlled per-user model.
Common mistake: Treating per-user OAuth as a convenience layer for all MCP traffic. That usually creates ambiguous accountability, makes revocation incomplete, and encourages token reuse beyond the original user intent.
Practitioner takeaway: The goal is not to make every agent “user-shaped”; it is to ensure that any user-shaped authority stays narrow, time-bound, observable, and easy to remove.
Related resources from NHI Mgmt Group
- Guide: OAuth 2.0 and OpenID Connect Guide for Identity Teams
- How do you govern per-user OAuth for MCP integrations?
- What are the implications of using OAuth tokens in third-party integrations?
- Why is OAuth considered a better alternative for MCP servers?
- Why do GitHub MCP integrations create higher data leakage risk for autonomous AI agents?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on December 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org