Use delegated OAuth on a per-user basis, so the agent receives an access token tied to that employee rather than a shared service account. Scope the token to the telephony API methods the user has authorised, then enforce consent, refresh-token rotation, expiry and revocation so the agent cannot keep calling the API after access changes.
Why per-user delegated OAuth matters for AI agents
Per-user OAuth keeps the telephony action tied to the human who granted it, rather than giving the agent a broad shared secret that can outlive the task. That matters because an agent can only act within the consented scope, and the token lifecycle becomes part of the control surface, not an afterthought. A shared service account, by contrast, blurs attribution and widens blast radius.
This is especially important when an AI agent is allowed to place calls, read call metadata, or trigger account actions through a telephony API. The safer pattern is to treat the agent as a delegated actor on behalf of a specific user, with the user’s consent and policy determining what the token can do.
When teams design the integration well, the access token is narrow enough that the agent can complete the intended workflow but not pivot into unrelated methods. That usually means separating user-scoped permissions from backend automation privileges and refusing to reuse one token across multiple people or workflows.
How consent, scope and token lifecycle should work
The main design decision is to scope the OAuth grant to the exact telephony capabilities the user has approved. If the workflow only needs outbound dialling, do not hand the agent a token that can also reconfigure numbers, manage billing or access recordings. The more constrained the token, the less likely a compromised agent or overbroad integration can cause unintended actions.
RFC 6749: The OAuth 2.0 Authorization Framework remains the base reference for delegated access, while RFC 8707: Resource Indicators for OAuth 2.0 is useful when you want the token audience to be constrained to the telephony resource being called.
Refresh-token rotation and expiry are not optional hygiene here, they are what keeps delegated access from turning into durable standing access. If the employee changes role, withdraws consent, or leaves the organisation, the agent should lose the ability to continue calling immediately after revocation and not wait for a long-lived credential to age out.
RFC 9700: Best Current Practice for OAuth 2.0 Security is the strongest reference for hardening token handling, and RFC 8705: OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens is relevant when you want stronger sender-constrained tokens instead of bearer-only exposure.
Consent should also be auditable. Teams should be able to answer who granted the access, what scope was approved, when it expires, and how revocation propagates through the telephony provider and any agent runtime that cached the token.
What fails when per-user OAuth is implemented loosely
The common failure mode is scope inflation, where a team starts with one narrow permission and gradually accumulates broader API access because it is convenient for testing or support. In an AI-agent flow, that convenience can turn into excessive agency, because the agent may be able to take actions the original user never intended or could not reasonably review.
OWASP API Security Top 10 is a good lens for checking whether the telephony API exposes broken authorisation paths, and RFC 6749 is the standard to revisit when grant handling feels improvised rather than designed.
Another failure mode is token persistence inside logs, agent memory, browser storage or developer tooling. If the token can be recovered after the user has revoked consent, the control has failed even if the OAuth screens looked correct. The integration should assume compromise of the agent process, then limit what that process can hold onto for long.
Teams also get into trouble when they use a single backend identity for all users and then try to simulate per-user behaviour in application logic. That may satisfy an application feature, but it defeats attribution, complicates revocation, and makes it harder to prove which user actually authorised a call or a downstream action.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Covers token lifecycle, rotation and revocation for delegated access. |
| IA-9 — Service Identification and Authentication | Applies where AI services and APIs authenticate to each other. | |
| Recommendation — Enforce rotation, expiry and revocation for telephony OAuth credentials. Use strong client authentication for agent-to-API access paths. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Per-user OAuth failures often start with weak token handling or identity binding. |
| API5 — Broken Function Level Authorization | Scopes must prevent agents from invoking telephony functions the user did not approve. | |
| Recommendation — Validate authentication flows and reject reusable shared credentials. Restrict each token to approved API methods and operations. | ||
| OWASP ASVS | V10 — OAuth and OIDC | Directly addresses delegated OAuth design and token security for applications. |
| Recommendation — Verify OAuth grant, scope and token security requirements for the integration. | ||
Practitioner Guidance
What to verify: Confirm that the agent receives a user-delegated token, not a shared service credential, and that the token scope maps only to the telephony methods the user truly needs. If the API supports finer-grained resource indicators or sender-constrained tokens, use them for higher-value call flows.
What to prioritise: Build revocation and expiry handling before expanding functionality. In practice, the hard part is not getting the first call to work, it is proving the agent stops cleanly when consent changes or the user leaves the workflow.
Common mistake: Do not treat the OAuth grant as a one-time setup step. For AI agents, access should be reviewed as a live delegation that can become too broad, stale, or reusable far sooner than teams expect.
Practitioner takeaway: The safest pattern is delegated, per-user, narrowly scoped OAuth with fast revocation, because that preserves user intent, reduces blast radius, and keeps the agent’s authority bounded to the workflow that was actually approved.
Related resources from NHI Mgmt Group
- Guide: Multi-Agent Systems for Beginners: How AI Agents Work in Teams and What Can Go Wrong
- OAuth Access
- How should security teams govern AI agents that use OAuth access?
- When is it crucial to implement least-privilege access for AI agents?
- How should security teams limit the risk from AI agents that have access to production systems?
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