# Whose Credentials Does Your Agent Use?

**URL:** <https://community.solace.com/t/whose-credentials-does-your-agent-use/5029>\
**Category:** Solace Agent Mesh\
**Created:** [December 4, 2026, 3:51pm UTC](https://community.solace.com/t/whose-credentials-does-your-agent-use/5029 "2026-12-04T15:51:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [December 4, 2026, 3:51pm UTC](https://community.solace.com/t/whose-credentials-does-your-agent-use/5029/1 "2026-12-04T15:51:06Z")

</div>

Signing users in gets most of the attention. The question that comes after it gets less: when an agent calls Jira or Power BI for someone, which identity does that call use?

The simple answer is one shared service account. Every user’s request then reaches the remote system as the same identity. The agent can see whatever that account can see, the remote audit log shows a bot instead of a person, and you can’t cut off one user without cutting off everyone. The way I see it, that undoes the permissions you set up everywhere else.

Agent Mesh calls the alternative secure user-delegated tool access. Each user consents once through the remote system’s own OAuth login, and from then on their tool calls run as them. For a remote MCP server that supports OAuth discovery and dynamic client registration, the config is short:

```yaml
tools:
  - tool_type: "mcp"
    connection_params:
      type: "streamable-http"
      url: "https://mcp.example.com/mcp"
    auth:
      type: "oauth2"
      display_name: "Example"

```

The first time a user calls the tool, they get an authorization prompt. After that, the agent stores a token for that user, encrypted at rest and scoped per user and per agent. OpenAPI tools and custom toolsets support the same model.

Three things have to be in place first: single sign-on on the entrypoint, a `sql` session store so tokens survive restarts and are shared across replicas, and the Trust Manager, which lets agents check that a task was really signed by the entrypoint before acting for a user.

Note that a stored credential lasts 30 days, and it’s refreshed when it’s next used, not on a schedule. A scheduled task can find a token that’s still stored but that the remote system has already stopped accepting.

To see the authorization prompt yourself, [download the Solace Agent Mesh desktop app](https://solace.com/products/agent-mesh/) and connect an MCP server that supports OAuth.

Docs:  
[Secure User-Delegated Tool Access](https://docs.solace.com/Agent-Mesh/Framework/administering/secure-user-delegated-access.htm)  
[Enabling Single Sign-On (SSO)](https://docs.solace.com/Agent-Mesh/Framework/administering/enabling-sso.htm)

When your agents call downstream systems today, do they use a shared service account or each user’s own token?
