Skip to content
Discuss your first workflow

Twin / Field note / 6 min read

Permissions That Hold in Slack and Teams

Teams already use Claude in Slack and Copilot in Microsoft 365. The risk is not the AI client; it is attaching broad OAuth connectors to mixed-sensitivity data without a record-level permission layer.

We keep hearing the same question from UK CTOs and security leads:

"Engineering and product love Claude in Slack. Finance and operations live in Microsoft 365 Copilot and Teams. We don't want to rip either tool out. How do we enforce real permissions beyond coarse app connectors, especially on payroll, board papers and legally privileged matters?"

Most enterprise AI governance guides miss that question completely. They stop at workspace admin switches: turn on Slack Enterprise Grid app controls, require Okta or Entra SSO, block personal accounts. Those switches are worth turning on, but they only decide who can install a connector. They say nothing about which specific business records an AI tool can pull together once the connector is live.

Why direct OAuth connectors leak sensitive context

Wire Claude directly to Slack, SharePoint, Jira, HubSpot and your finance system with individual OAuth connectors, then wire up Microsoft 365 Copilot separately, and four practical problems show up quickly.

First, years of workspace drift become instant search. Almost every SharePoint tenant has "Everyone except external users" links, broken sub-folder inheritance and old guest accounts left over from finished projects. Slack workspaces accumulate semi-public channels where commercial, HR or legal notes were pasted years ago. Staff rarely dug through those folders by hand; an AI assistant finds and summarises them in two seconds.

Second, one system almost always holds mixed sensitivity. Your ERP stores everyday customer invoices in the same database as payroll journals, executive pay and M&A advisory fees. Your document store holds routine supplier contracts right next to legally privileged counsel advice. App-level OAuth is all-or-nothing: either a user or service account can reach the system, or it cannot.

Third, Copilot and Claude stop enforcing the same rules. Even if IT spends weeks tuning Microsoft Purview sensitivity labels for Copilot, direct MCP connectors inside Claude or Slack do not inherit those policies automatically. The exact same employee can get a clean refusal in Teams and a full summary in Slack five minutes later.

Fourth, a system prompt is not a security boundary. Writing "never disclose payroll, HR disputes or legally privileged advice" in an agent prompt does not protect anything if those records still land in the model's context window. Indirect prompt injection or a slightly reworded follow-up question can still pull them out.

Direct app connectors vs. one governed role layer

Security dimensionDirect OAuth app connectors (Slack / SharePoint / ERP)Company Twin governed knowledge graph
Scope of enforcementApp-level or folder-level workspace permissions; each connector applies its own rules.Record-level and entity-level role policies enforced once across all connected systems.
Legally privileged & payroll dataEasily exposed through inherited SharePoint links or broad ERP service credentials.Filtered out deterministically before retrieval; returns "not found" to unauthorised users.
Consistency across AI clientsCopilot, Teams, Slack and Claude each carry separate connectors and drift apart.One governed MCP endpoint (/mcp/graph) and app layer serves identical boundaries everywhere.
Where access control runsSplit between source-app ACLs and probabilistic prompt instructions.Deterministic policy check inside the model-free Rust graph engine and runtime, outside the LLM.
Audit trailScattered across vendor logs with weak record-level provenance.Single audit trail showing who asked, which role applied and which exact records were cited.

Sitting underneath Slack, Teams, Copilot and Claude

People will not leave the tools they work in all day. Tell engineers to stop using Claude in Slack, or tell finance to drop Microsoft 365 Copilot, and shadow AI turns up by Friday.

Go to where people already work. Don't ask them to move.

The cleaner pattern is to keep every client where it is and put one governed data layer underneath all of them.

Permissions / Four tools, one role layer

A connector in each tool, or one role layer under all four.

Today: a direct OAuth connector in each tool
  • SharePointOld “Everyone except external users” links and broken inheritance on sub-folders
  • SlackSemi-public channels where HR and legal updates were shared years ago
  • ERPOne broad service credential, so payroll journals sit beside customer invoices

Each tool reads through its own connector and inherits every gap, so the same person can get a refusal in Teams and a full answer in Slack.

With the Company Twin underneath all four
Company TwinOne Microsoft Entra and SSO role layer
Checked in the graph engine, before any model runs
  • Customer receivables and delivery milestonesAnswered for account managers on their own accounts
  • Payroll and legally privileged mattersThe same “not found” in every tool
  1. Claude app, SSO sign-inSlack
  2. Copilot or the Twin agent, Entra sign-inMicrosoft Teams
  3. /mcp/graph federated connectorMicrosoft 365 Copilot
  4. /mcp/graph over OAuth 2.1Claude
A prompt that says “never reveal payroll” is a request, not a lock. The role check runs outside the model, so a restricted record never reaches any tool’s context.
Figure 01: A direct OAuth connector in each tool inherits every gap in the systems behind it: old SharePoint sharing links, semi-public Slack channels and one broad ERP credential. With the Company Twin underneath Slack, Teams, Microsoft 365 Copilot and Claude, one Microsoft Entra and SSO role layer decides what each person can read, inside the graph engine and before any model runs.

When someone asks a question in Microsoft 365 Copilot, mentions @Twin in Teams, chats in Slack or calls MCP from Claude, their Microsoft Entra ID (or corporate SSO) identity travels with the request. IT, Legal and Finance define the role boundaries once, outside any model:

  • Account managers can read customer receivables, support tickets and open delivery milestones for their own accounts.
  • Legal counsel and named executives can query restricted matter folders and board packs.
  • Payroll, disciplinary HR notes and legally privileged advice stay invisible to everyone else.

If someone outside the legal or executive role asks "Summarise any open employment disputes or privileged counsel notes on Client X", the model-free Rust graph engine removes those records before a language model ever sees the query. The model cannot leak context it never received, so Copilot, Teams, Slack and Claude all return the exact same “not found”. When a caller is permitted, the answer arrives with direct references back to the source records and sync timestamps.

Claude in Slack
Copilot in Teams
Figure 02: The same account manager asks the same two questions of Claude in Slack and of Copilot in Teams. The commercial question returns the same figures from Xero in both, with the access they were read with and when. The question about employment disputes and privileged counsel notes returns the same “not found” in both. The customer and amounts are illustrative.

Four checks to run before widening connector access

  1. List where sensitive records actually sit: payroll nominals, HR disputes, board papers, M&A workstreams and legally privileged advice across SharePoint, private Slack channels and ERP tables.
  2. Hunt down shared service accounts: check every custom Copilot Studio agent and MCP server to make sure it runs under per-user identity rather than one broad ERP or warehouse credential.
  3. Test parity across every client you allow: ask the same five restricted questions as a standard commercial user in Copilot, Teams, Slack and Claude, and verify every surface refuses identically.
  4. Keep read context separate from write actions: start every graph deployment strictly read-only on operational systems so a bad prompt can never post a journal, send an email or change permissions.

Further reading

See how Company Twin enforces one governed role layer across Microsoft 365 Copilot, Microsoft Teams, Slack and Claude. For the deeper technical argument on why access control cannot live inside the prompt window, read Context Is a Security Boundary, Not a Token Budget.

A few practical questions.

Does adopting a governed knowledge graph mean replacing Claude in Slack or Copilot in Teams?

No. People stay in the tools they already use: Claude in Slack or Claude Desktop, and Microsoft 365 Copilot in Teams. Company Twin sits underneath those tools as one governed MCP and app layer so every client enforces the same permissions and returns the same figures.

Why are standard Slack and SharePoint OAuth permissions not enough for enterprise AI?

App-level OAuth only checks whether a user has coarse access to a workspace or connector. It cannot cleanly separate legally privileged matters, payroll rows, board papers or restricted customer accounts that sit inside shared folders, broad ERP credentials or inherited channel permissions.

How does a governed graph prevent an AI model from leaking restricted records via prompt injection?

Access control runs deterministically inside the graph and agent runtime before any record enters the model's context window. If a user's Entra or SSO role does not permit access to payroll, legal privilege or a restricted entity, those rows are never retrieved and the query returns 'not found'.

Put it to work

Keep exploring the Twin.

Read the practical guides to business context, connected tools and working with evidence.