Per-user authentication on shared agents is a specific way to credential a team AI agent: each user's queries run under their own login, not under a shared service account. The agent inherits the requesting user's permissions, data scope, and audit identity for that interaction.
That matters now because a lot of teams set this up wrong and don't know it.
Should an enterprise AI assistant query data as the individual user or a shared service account?
Short answer: as the individual user, whenever one agent serves several people and the data behind it has per-person permissions. A shared agent that reads a CRM, a ticketing system, or a drive through one service account shows every person who asks whatever that account can see, and the tool's logs record the account instead of the person.
A shared service account is still a reasonable choice in narrower cases:
- Data that everyone who can use the agent is allowed to see anyway, such as a public help center or a team-wide wiki space.
- Background jobs with no human requester, such as a nightly sync or a scheduled report. Scope the account to read-only access on exactly the data the job needs.
- Tools that only accept one static API key or token. Treat that key as a service account and limit what it can reach.
Many teams end up with a mix: per-user access for systems where people have different permissions, and a narrowly scoped shared credential for the rest. The rest of this guide covers why the shared default causes problems, how per-user access works, and how to audit what you run today.
In May 2026, Okta announced that its Identity Security Posture Management platform integrates with Anthropic's new Claude Compliance API, letting security teams monitor identity risks inside Claude deployments. A week later, Gartner published a press release that's hard to misread: "Applying Uniform Governance Across AI Agents Will Lead to Enterprise AI Agent Failure."
One bot identity for everyone. That's exactly how most Slack-based AI agents run today.
If your team deployed a shared @SalesOps or @CSBot last year and never touched its credential setup since, this is worth your time. No engineering background needed.
What is per-user authentication on shared agents?
Per-user authentication on shared agents is the model where a single named agent (like @SalesOps in a shared Slack channel) runs each user's request under that specific user's credentials. When Maya in Customer Success asks @SalesOps to pull a Zendesk ticket, the agent authenticates as Maya. When Daniel in RevOps asks the same agent for a pipeline report, it authenticates as Daniel.
Per-user authentication on shared agents, defined: A deployment model where each user's queries through a shared team AI agent run under that user's own login and permission scope, not a shared service account. The agent inherits the requesting user's identity for each interaction. The result: no accumulated permissions, no cross-user data exposure, and audit logs that point to people rather than service accounts.
The agent doesn't accumulate access beyond what each individual user already has. Every interaction is scoped to what that person can see and do on their own.
One common technical pattern behind this is Microsoft's On-Behalf-Of (OBO) flow, an OAuth-based mechanism that lets a service act on a user's behalf while keeping that user's permission scope intact. Microsoft's architecture blog recommends keeping user context through multi-agent setups that touch user data. The constraint: no shared service identity, no accumulating permissions.
On-Behalf-Of (OBO) flow, defined: An OAuth-based flow on the Microsoft identity platform that lets a service act on a user's behalf while keeping that user's permission scope intact. Other platforms reach the same result by having each user link their own account. Either way, each agent action is scoped to what the requesting user can see and do in the connected system.
Plain terms: the agent acts like you, not like a super-admin no one hired.
The problem: shared credentials are the norm
Most teams credential their Slack or Teams AI agents one of these ways:
- A static API key, hardcoded at setup, never rotated, owned by no one in particular
- A shared username and password running all agent actions through one service account
- A personal access token from a team member's account that someone forgot to revisit
The Okta "AI Agents at Work 2026" report found that 44% of enterprises use static API keys and 43% use shared username/password combinations to credential their AI agents. Only 21.9% authenticate each agent as a distinct entity with its own credentials and audit trail, per Strata.io's 2026 research on the AI agent identity crisis.
The consequence is practical. When six people on your CS team ask @CSAgent a question throughout the day, every response runs as the same identity. If that identity is a Salesforce admin API key, every user gets admin-level visibility through the agent regardless of what they'd see by logging in directly.
Bessemer Venture Partners called securing AI agents the top cybersecurity challenge of 2026, and the reason is exactly this: credential gaps compound as teams add agents, and most teams aren't watching closely.
Three failure modes worth knowing
Cross-user data leakage in shared channels
Okta documented a concrete case: a CFO's agent in a shared Slack workspace surfaced executive compensation data to junior analysts who had no authorization to see it. The agent ran under a broad service account. It pulled everything that service account could see and returned it to whoever asked.
In a shared Slack channel, that output goes to the whole room.
That's not an edge case. It's what any agent running under a shared credential with wider access than the user's own entitlements will do by default.
Privilege escalation through tool chaining
AI agents don't just answer questions, they chain tool calls. One instruction like "update the deal stage, add a contact note, and send a follow-up email" triggers three separate API calls. If all three run as a service account with admin-level access, a single compromised credential covers every integration the agent touches.
Rotate the one API key and you fix all six reps at once. But until then, there's an always-on admin token attached to every workflow the agent handles, and most teams don't actually know which systems it can reach.
The compliance gap
Gartner projected in April 2026 that by 2028, 25% of enterprise GenAI applications will experience at least five minor security incidents per year, up from 9% in 2025. When those incidents involve a shared-credential agent, every action in the audit log points to one service account. You can't tell which human user triggered the query, the record modification, or the external API call.
For SOC 2, HIPAA, or any framework requiring user-level audit trails, "the bot did it" isn't an acceptable answer.
Shared credentials vs. per-user authentication: a direct comparison
| Dimension | Shared Bot Identity | Per-User Authentication |
| Data access | Everything the service account can see | Only what the requesting user can see |
| Audit trail | All actions attributed to one service account | Each action attributed to the individual user |
| Breach surface | One compromised key exposes all integrations | Per-user tokens are scoped to each person's permissions |
| Compliance posture | Hard to meet user-level attribution requirements (for example in SOC 2 or HIPAA reviews) | Tool logs can attribute each action to the individual user |
| Offboarding | Manual: rotate or revoke shared credential | Automatic: revoking user access revokes agent scope |
| Setup complexity | Minutes (no auth flow required) | Admin-configurable with the right platform; engineering sprint without one |
What actually changes with per-user auth
You don't need to understand OAuth to follow this. Here's what per-user auth does in practice for a team running a shared Slack agent:
Shared credential model:
- Employee asks @SalesOps to pull a Salesforce opportunity
- Agent calls Salesforce using the service account API key
- Salesforce returns everything the admin account can see
- Agent surfaces that data, including fields the employee wouldn't see in their own login
Per-user OAuth model:
- Employee asks @SalesOps to pull the same opportunity
- Agent calls Salesforce with the employee's own connected account, not the service account
- Salesforce returns only what that employee's role allows
- Agent surfaces scoped data, the same as a direct login
The agent isn't weaker. It's scoped to the right person.
Offboarding also gets cleaner. When someone leaves and their Salesforce access is revoked, the agent loses the ability to act on their behalf automatically. No separate token rotation. No hunting down which bots were running under whose credentials.
A 5-step audit if you're already running shared agents
You don't need to start over. For most teams, switching to per-user auth is an afternoon of configuration, not a sprint. Start here:
- List every credential your agents are using. Open the config for each agent. Is the Salesforce connection a service account, an API key, or a personal token from someone's account?
- Check what that credential can actually access. Log in as the service account and see what it can reach. Compare that to what your most junior team member sees with a direct login.
- Map the gap. Every place where the agent's access is wider than the requesting user's own access is a risk surface. Write it down. That's your audit finding before it becomes an incident report.
- Check whether your platform supports per-user OAuth. Some agent platforms expose this as a toggle in the admin panel. Others require engineering work to implement OBO from scratch. One is an afternoon. The other is a sprint.
- Check Anthropic's Compliance API. Okta's May 2026 ISPM integration now monitors Claude agent deployments for identity misconfigurations in real time. For Claude Enterprise customers, it's configurable without custom code.
How a team can share one agent in Slack and keep each person's permissions
Put one named agent in the shared channel, and have it read each connected tool with the asker's own access wherever the tool supports it, instead of a service account.

- Install the agent once. One install covers the whole workspace, and the team mentions the agent by name, for example @SalesOps.
- Connect the tools it should use, such as Salesforce, Linear, or Jira, and choose Per-User authorization where the tool offers it. Each teammate then connects their own account.
- On Per-User tools, run each request with the requester's permissions. A finance analyst asking for a deal record sees only what they would see in Salesforce directly. An engineer asking for an HR doc sees only what HR has granted them.
- Check the trail in each tool. On a Per-User tool, the call runs on the requester's own connection, so that tool's logs can show the person who asked, not a shared service account. Confirm what each tool records.
One limit to plan for: documents you index into the agent's knowledge base are shared by everyone who can use the agent. Per-user permissions apply to connected tools, so keep restricted documents in those tools rather than in the index.
Does this apply to MCP tools?
Yes, and the risk is easier to miss there. The Model Context Protocol (MCP) makes it simple to connect an agent to Salesforce, Zendesk, a database or a code host. It does not decide whose permissions the agent uses. MCP is a connection standard, and authentication, authorization and audit are left to whoever sets up the server.
The failure looks like this. A team connects one MCP server with one admin token, then shares the agent in a channel. Anyone who mentions the agent can read whatever that token can read, and the server's logs show the token, not the person.
The fix is the one in the steps above: each call should run as the person who asked. In Runbear you choose Per-User or Shared for each tool that offers it. For a custom MCP server that uses OAuth, Per-User is the default: each teammate connects their own account, and the agent calls the server with that person's token. Servers that use a static API key or header run on that one shared credential, so treat them like a service account.

A two-minute test: ask the same agent for the same record once as an admin and once as a new hire. The answers should differ the way their direct logins would. If they match, the agent is running on a shared credential.
Google Workspace now requires AI agents to use its MCP servers
Google has now set its own rules for how AI agents reach Gmail, Drive, Calendar and the rest of Workspace. On November 24, 2026, Google made Workspace MCP servers generally available for Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat and Tasks, alongside a Workspace AI Tools Addendum to its API terms (last modified November 24, 2026). Under the addendum, a tool that is, or is driven by, an AI agent must use a Google MCP server instead of calling the Workspace REST APIs directly. Google's announcement names the Workspace CLI as the other allowed path. Technical enforcement begins on February 1, 2027. Google's usage-tier page adds that AI agents that call the REST APIs directly are limited to Standard Tier quotas whatever tier the project selects, and Standard Tier limits apply across all projects from April 1, 2027.
The rules point the same way as the per-user model in this guide: narrow, checked access. Google says agents must use dedicated agent OAuth client IDs with least-privilege scopes, and that every call is checked against the organization's Workspace permissions, DLP rules and classification labels. The MCP servers and CLI require explicit user confirmation before an agent sends email, changes Drive sharing permissions or makes bulk edits. The addendum also limits what an agent product may keep. User data and information derived from Workspace may be used only to fulfill active, user-authorized tasks, may not be kept after the user disconnects the tool or revokes its access, and may not be used for model training, fine-tuning, evaluation datasets or distillation. That derived information, which the addendum calls Google Technical Information and says includes vector embeddings, memory indexes and user profiles, may not be stored for more than 30 days.
Two limits are worth checking before you plan around the MCP servers (as of November 2026). On the Gmail MCP server, send_message, reply and forward are marked as requiring partner access and are not generally available, so an agent on the generally available tools can search, read and draft mail but not send it. The free Standard Tier also caps MCP usage at 5,000 requests per day, per project, per product, according to the usage-tier page, and a Gmail search_threads call counts as 10 of them. Paid Scaled Tier billing for the Gmail, Calendar and Drive MCP servers begins on April 1, 2027. Traditional apps that are not AI agents continue to run on the existing REST APIs. If your team's agent reaches Workspace data through a third-party platform, ask the vendor how it will meet the February 1, 2027 requirement.
How Runbear handles this
Editor's note: Runbear publishes this blog. This section describes how Runbear implements per-user authentication in its shared agent platform.
In Runbear you choose, for each tool an agent uses, whether it runs Per-User or Shared, so one agent can mix both. On a Per-User tool, each teammate links their own account and the agent calls the tool with that person's permissions, not with the account of the admin who set up the agent. Custom MCP servers that use OAuth default to Per-User.
For context on alternatives: DIY Slack bots (Zapier, custom scripts) typically use one shared token per integration; implementing OBO requires engineering most ops teams can't prioritize. Generic AI assistants like ChatGPT plugins are built for single-user sessions, not shared team agents. Glean and Notion AI return user-scoped search results, but they're retrieval tools for individuals, not agents executing cross-system workflows.
Not every tool offers the choice. HubSpot, for example, connects with a private app access token, so the agent uses that one token for everyone. For records of who did what, Runbear's audit log on Business plans and above records configuration changes: who changed what, where, and when. On a Per-User tool, the call runs on the person's own connection, so the connected tool's own logs can attribute it to them.
What changed in 2026
Okta and Anthropic Compliance API (May 21, 2026). Okta's ISPM platform now monitors Claude agent deployments for identity misconfigurations in real time. Anthropic shipped 28 security and compliance integrations in a single month that May, making identity management for Claude-based agents something you can configure rather than build.
Gartner's warning on uniform governance (May 26, 2026). The headline: "Applying Uniform Governance Across AI Agents Will Lead to Enterprise AI Agent Failure." That's a direct argument against the one-service-account-for-all model most teams are running, from the analyst most enterprises cite in risk discussions.
Google Workspace AI Tools Addendum (November 24, 2026). Google's new terms require AI agents to reach Workspace data through Google MCP servers, and its announcement adds dedicated agent OAuth clients with least-privilege scopes, with enforcement from February 1, 2027. Agent-specific credentials, least-privilege scopes and permission checks on every call are now part of a major platform's rules for AI agents, not only analyst guidance.
The scale of non-human identities. Non-human identities in enterprise environments already significantly outnumber human ones, and AI agents are the fastest-growing segment. Managing all of that on shared credentials isn't just a risk question, it's an operational scaling problem.
Key takeaways
- For a shared agent, query data as the individual user. Keep shared service accounts for data everyone may see, unattended jobs, and static-key tools, and scope them narrowly.
- 44% of enterprises use static API keys to credential their agents. That's not a niche mistake, it's the default. Data leakage, privilege escalation, and compliance failures follow structurally.
- Per-user auth scopes each interaction to the requesting user. No access accumulates. Audit logs point to people, not service accounts.
- The 5-step audit is a short exercise for most teams. Identify your credential model, map the access gap, and check whether your platform lets each user connect their own account.
- Gartner, Okta, and Anthropic all published guidance on this in May 2026. It's in tier-1 analyst reports and platform documentation now.
- Offboarding cleans itself up. Revoke someone's SaaS access and their ability to act through the agent goes with it.
About the author
Daniel Reeves is a B2B technology writer covering enterprise AI governance and team workflow automation. He writes for operators deploying AI agents in Slack and Teams who need to think about security without an engineering background.
Sources
- Okta, "AI Agents at Work 2026," May 2026. https://www.okta.com/newsroom/articles/ai-agents-at-work-2026-agentic-enterprise-security/
- Strata.io, "The AI Agent Identity Crisis," 2026. https://www.strata.io/blog/agentic-identity/the-ai-agent-identity-crisis-new-research-reveals-a-governance-gap/
- Gartner, "Gartner Predicts 25% of Enterprise GenAI Applications Will Experience Security Incidents by 2028," April 9, 2026. https://www.gartner.com/en/newsroom/press-releases/2026-04-09-gartner-predicts-25-percent-of-all-enterprise-gen-ai-applications-will-experience-at-least-five-minor-security-incidents-per-year-by-2028
- Okta + Anthropic Claude Compliance API integration, May 21, 2026. https://www.okta.com/newsroom/articles/okta-identity-security-posture-management-integrates-with-anthropics-new-compliance-api/
- Gartner, "Applying Uniform Governance Across AI Agents Will Lead to Enterprise AI Agent Failure," May 26, 2026. https://www.gartner.com/en/newsroom/press-releases/2026-05-26-gartner-says-applying-uniform-governance-across-ai-agents-will-lead-to-enterprise-ai-agent-failure
- Microsoft, "Securing a Multi-Agent AI Solution Focused on User Context," 2026. https://techcommunity.microsoft.com/blog/azurearchitectureblog/securing-a-multi-agent-ai-solution-focused-on-user-context--the-complexities-of-/4493308
- Bessemer Venture Partners, "Securing AI agents: the defining cybersecurity challenge of 2026." https://www.bvp.com/atlas/securing-ai-agents-the-defining-cybersecurity-challenge-of-2026
- Google Cloud, "Deploying agents safely in your enterprise," November 24, 2026. https://cloud.google.com/blog/products/identity-security/deploying-agents-safely-in-your-enterprise
- Google, "Workspace AI Tools Addendum," last modified November 24, 2026. https://workspace.google.com/terms/ai-tools
- Google for Developers, Workspace tools safety and usage tiers. https://developers.google.com/workspace/tools-safety
- Google for Developers, Gmail API usage limits (MCP server quotas). https://developers.google.com/workspace/gmail/api/guides/quotas



