Safeguard
AI Security•

Shared credential or per-user sign-in for an MCP connector?

A shared key gives everyone the same access, while per-user OAuth ties access to a person. Compare both for security connectors, with a table to decide.

Safeguard Security Team
6 min read

Prefer per-user sign-in for any connector that returns security findings. A shared credential gives every user the same access and blurs who did what. Use a shared key only for a short pilot with read permissions and a named owner, because Claude's help center says shared credentials give everyone that credential's access.

The two models

With per-user sign-in, each person authorizes the connector with their own account. The server issues a token for that person, with the scopes they approved. With a shared credential, an admin sets one key or header, and every member who uses the connector acts through it.

Claude's help center describes the choice for Team and Enterprise: after an admin adds a connector, each member connects individually, but a connector with a shared credential, such as an API key, gives everyone that credential's access.

Comparison

FactorPer-user OAuthShared credential
Who the server seesThe actual personOne shared identity
Audit trailPer personPer key
RevocationRemove one userRotate for everyone
Least privilegeScopes per userOne permission level for all
Setup effortHigherLower
Leak impactOne person's accessEveryone's access

What the MCP security guidance adds

The best practices page says token passthrough is an anti-pattern, because it breaks accountability. It notes that the server cannot tell clients apart and the downstream logs show a different identity than the real source. A shared key has a similar effect: the logs show the key, not the person.

It also covers scope minimization. A token with broad scopes enlarges the blast radius, makes revocation disruptive, and adds audit noise. One omnibus key for a whole team is the extreme version of that.

When shared is acceptable

  1. A time boxed pilot with a small group.
  2. A read only key that cannot return customer data.
  3. A named owner who can rotate it.
  4. A plan to move to per-user sign-in before wider rollout.

Questions for the vendor

  • Can access be tied to a user identity and a role?
  • Can the key be restricted to read operations?
  • Do tool calls record which user made them?
  • How fast can we revoke a single person?

If the answer to the third question is no, you cannot reconstruct events later.

Moving from shared to per-user

Run both for a short overlap, move users in groups, then rotate the shared key and confirm nothing still depends on it. Update your register of connectors afterward.

A worked example: moving a pilot from shared to per-user

This is a made up scenario.

A team of eight starts with a shared read only key, because the vendor's connector supports that first. The key is stored in connector settings, and an owner is named. After three weeks, two things happen. A new contractor needs access for one project, and the security lead is asked who looked at a particular finding last Tuesday. With a shared key, neither question has a clean answer: the contractor would get the same access as everyone, and the logs show only the key.

The team switches to per-user sign in. The steps: ask the vendor to enable OAuth for the workspace, invite users in two groups, have each person connect and review scopes, confirm in the vendor's access list that each user appears, then rotate the shared key and confirm nothing breaks. The contractor gets a role limited to one project.

Step by step: audit a shared credential

  1. Find where the key is stored and who can read it.
  2. Find who created it and when. If nobody knows, rotate it.
  3. Check the permissions attached to it. Reduce them to read only if possible.
  4. List who uses the connector.
  5. Check whether the vendor logs show which person made each call. If not, note the gap.
  6. Set a rotation date.
  7. Schedule the move to per-user sign in.

Table: what each model can answer after an incident

QuestionShared keyPer-user OAuth
Which person asked for this dataProbably notYes, if the vendor logs users
Which tool was calledYes, if loggedYes
Can we cut off one personNot without rotatingYes
Can we limit one person to one projectNoYes, with roles and scopes
How fast is cleanup after a leakRotate and update everywhereRevoke the user

Why the guidance cares

The MCP best practices page describes how accountability suffers when a server cannot tell clients apart, and when downstream logs show a different identity from the real source. It names this under token passthrough, but the lesson is general: if identity is blurred, investigation is harder.

The same page also stresses that tokens should be scoped narrowly, since a broad token that leaks affects every workflow that uses it.

A realistic compromise

Sometimes the vendor only offers a shared key for now. In that case reduce harm: read only permissions, a short expiry, a named owner, no use in research runs, and a dated commitment from the vendor to support per-user sign in. Put the gap in your risk register so it does not fade from view.

Conversation starter for the vendor

Ask: if one of our engineers leaves today, what exactly do we do at your side, and how long does it take? Their answer shows which model they built for.

Where Safeguard fits

Safeguard offers agent identity and an MCP Guardrail for teams that want agents and tools tied to accountable identities. A free scan at gold.safeguard.sh/scan shows what a connector would be exposing.

Try it yourself

Click through it at your own pace, or open it full screen.

Look at where access is configured, and ask whether that step is per person or shared by everyone.

Quick check

Is a shared key ever fine?

For a short read only pilot with an owner, yes. Plan to move to per-user sign in.

Does per-user sign in remove the need for scopes review?

No. Users still approve scopes, so read what is requested and decline extras.

Does per-user sign in need more admin work?

Some, at the start. It saves time later because revoking and auditing are per person.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.