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
- A portal with access groups
- For the CLI steps, install
metorial-adminand sign in
When each option fits
| Each Person Connects | Shared Connection | |
|---|---|---|
| Who connects | Every person, once, in the portal | An admin, once |
| Whose permissions the app applies | The person's own | The shared account's, for everyone |
| Good for | Email, calendar, code hosting, tickets, CRM, documents | Read-only reference data, internal APIs with one key |
| The app's own audit log shows | The person | The shared account |
| Metorial's log shows | The person who made the call | The person who made the call |
| If a tool is misused | Limited to what that person could already do | Everything 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.
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
- How per-user OAuth works: the call flow and where credentials are stored
- Metorial's OAuth app or your own: which OAuth app people connect through
- CI and scheduled jobs: credentials for jobs with no person present