MetorialDocs

Shared credentials or per-user OAuth for an MCP server?

Use per-user OAuth for any app with personal accounts so each call runs with that person’s permissions. Use a shared account only for common, read-mostly data.

Use per-user OAuth whenever the app has personal accounts, such as GitHub, Google Workspace, Slack or your CRM: each person connects their own account, and the app applies their permissions to every call their agent makes. Use a shared credential only when everyone should see the same data and the account behind it is limited. In Metorial this is the Connection setting of a shared resource: Each Person Connects or Shared Connection.

What you'll learn

  • Which connection mode to pick for which app
  • What each mode means for permissions and logs
  • How to set or change the mode

Before you start

When each option fits

Each Person ConnectsShared Connection
Who connectsEvery person, once, in the portalAn admin, once
Whose permissions the app appliesThe person's ownThe shared account's, for everyone
Good forEmail, calendar, code hosting, tickets, CRM, documentsRead-only reference data, internal APIs with one key
The app's own audit log showsThe personThe shared account
Metorial's log showsThe person who made the callThe person who made the call
If a tool is misusedLimited to what that person could already doEverything the shared account can do

A shared resource has one mode for everyone who can use it. To offer both, share two resources for the same provider with different access groups.

Set the connection mode

Open the shared resource

In Workforce, open your portal, then Access, Shared Resources, and select the integration.

Read the Connection box

It reads "Each person connects. Everyone signs in with their own account." or "Shared connection. Everyone with access acts as one shared account."

Change it

Select the button labeled "Change…". Under Connection mode, choose Each Person Connects or Shared Connection. The change applies to every access group and person who can use the resource.

Limit a shared connection

Give the account behind it the least access it needs in the app, and set the integration's Tool Filters to reject Write Tools and Destructive Tools unless the team needs them.

Check it worked

List what a group can use. An access rule of type provider_template means each person connects. Type magic_mcp_server means a shared connection.

metorial-admin portals list
metorial-admin portals groups list <portal-id>
metorial-admin portals access list <portal-id> --consumer-group-id <group-id>

As a member of the group, an integration where each person connects asks you to connect your own account first. A shared connection is ready without signing in to the app.

Next steps