Skip to main content
Mintive is the new name for MintMCP.Read the announcement
Jiquan Ngiam

How to limit Claude and ChatGPT's SharePoint access by site and Purview label

When Claude or ChatGPT connects to SharePoint, it signs in as the person using it and can open every site, library and file that person can open. In most Microsoft 365 tenants that set is far larger than anyone intended, because years of sharing links, broken permission inheritance and sites shared with "Everyone except external users" give a typical employee read access to folders they have never seen.

Until now, finding those files meant knowing where to look. An assistant searches everything the user can reach to answer a question, so it finds them. Microsoft 365 Copilot ran into this first: in a June 2024 Gartner survey of 132 IT leaders, 40% said oversharing concerns had delayed their Copilot rollout by three months or more, Computerworld reported. Gartner analyst Max Goss described the problem this way:

"The better the information retrieval tool, the better your information governance has to be."

Claude and ChatGPT now reach SharePoint the same way, through connectors and MCP servers that call Microsoft Graph as the user, so SharePoint oversharing becomes their problem too. The fix is to limit AI access to specific SharePoint sites, document libraries and files by Purview sensitivity label, on the path the assistant actually uses.

Why SharePoint oversharing matters more with AI​

  • Oversharing becomes findable: a salary spreadsheet in a site shared with the whole company was safe in practice because nobody knew it was there. An assistant asked what engineers at a given level earn can find it in one search and quote it in the answer.
  • Answers travel further than files: assistants summarize, quote and draft. A board pack labelled Highly Confidential in Purview can become a paragraph in a chat, an email draft or a ticket, and text copied out of a labelled file carries no label.
  • Wider reach gives a bad instruction more to work with: an agent that reads a file containing hidden instructions (prompt injection) acts with whatever access it holds, so narrowing that access narrows what such an instruction can reach.
  • Fixing permissions takes months: cleaning up SharePoint permissions is the long-term answer, but it takes months of site reviews and access reports, and most teams want Claude or ChatGPT on SharePoint before that work is done.

What Microsoft's controls cover​

Microsoft's controls for this problem were built for Microsoft 365 Copilot. Restricted Content Discovery, part of SharePoint Advanced Management, hides chosen sites from organization-wide search and Copilot. Microsoft's documentation says it "doesn't change existing permissions. Users who already have access to content can continue to access that content directly," describes it as a temporary control while permissions are reviewed, and lists a Copilot license as a prerequisite.

That distinction matters for Claude and ChatGPT. A connector that opens files through Microsoft Graph as the user is accessing content directly, so hiding a site from search doesn't stop it. Purview sensitivity labels work the same way: a label marks a file as Confidential, but unless the label also encrypts the file and withholds the right to extract its content, an app reading as the user still receives the text.

So the control has to sit on the path the assistant uses to reach SharePoint.

Diagram comparing a Claude or ChatGPT SharePoint connector calling Microsoft Graph directly with the same call routed through Mintive's gateway rules
A direct connector reaches everything the user can open, while the gateway checks admin rules before any file reaches the assistant.

Three ways to limit AI access to SharePoint​

Mintive (formerly MintMCP) is the gateway between AI clients and the tools they use. Claude, ChatGPT and Microsoft 365 Copilot connect to a Virtual MCP (one endpoint that bundles the connectors and rules a team is allowed), each user signs in with their own Microsoft account, and each SharePoint call reaches Microsoft Graph as that user, so an assistant never gets more access than the person using it. Admins can then narrow that access by site, by document library or by sensitivity label.

By site: SharePoint (Scoped Site)​

The SharePoint (Scoped Site) connector is locked to one SharePoint site, which an admin sets at install. Agents get the usual SharePoint tools (e.g., browse the site's document libraries, search, read, create and update files), and every call that names another site, a group drive or a file outside the site is refused. The site is fixed when the connector starts, so nothing in a request can widen it. To cover a second site, such as Finance alongside the HR policy site, install the connector again with that site's ID. That suits a handful of departmental sites, while sensitive files spread across many sites are a better fit for labels. The single-site setup guide walks through it.

By document library: the drive allowlist​

When a site holds both libraries agents should use and libraries they shouldn't, the SharePoint drive allowlist middleware template restricts SharePoint tools to a list of drive IDs (SharePoint's document libraries). Tools that take a drive ID (listing, opening, creating, updating and deleting files) are blocked on any other drive before the call reaches Microsoft, while list_drives stays open so admins can find the IDs to add. Search isn't tied to a drive, so turn off the search tool on that Virtual MCP when search results must stay inside the list too. The template is one of the starters in gateway middleware.

By sensitivity label: the labels read gate​

Label filtering runs on its own connector, and one connector can't apply both a site lock and the label gate today, so pick Scoped Site when the rule is "only this site" and labels when sensitive files are spread across sites. The SharePoint (filtered by Labels) connector reads the Purview sensitivity label on every file it lists, searches or opens, and the SharePoint labels read gate decides what reaches the assistant:

  • Restricted files are blocked on open: opening a file whose label is restricted returns a block that names the label. Labels are restricted by GUID, which survives renames and tells sublabels with the same name apart, or by priority (e.g., Confidential and everything above it).
  • Search can't read restricted text: in listings and search results, restricted files stay listed with their label but lose their search snippet, so a query can't read their contents. One setting drops them from results entirely.
  • Unverified labels count as restricted: a file whose label can't be read or verified is treated as restricted, and the gate blocks the result if it errors.
  • Unlabelled files pass: the gate acts on labels, so a file nobody has labelled reaches the assistant like any other file the user can open. Purview auto-labelling policies are how those files get covered.
  • Encrypted files follow the user's rights: when a file is opened, the connector confirms its label with Microsoft Graph and, for an encrypted file, checks that the user holds the EXTRACT right. A user with view-only rights gets the file's details and its Office link but not its content.

Labels are read live on each open, so a label change in Purview applies on the next read, and the connector never decrypts a file or changes a label. The sensitivity labels guide covers setup, the label fields and the gate's settings.

A rollout for Claude and ChatGPT​

Five steps cover most rollouts:

  1. Route SharePoint through the gateway. With user consent turned off in Microsoft Entra, an admin decides which apps can read SharePoint at all. Grant admin consent to the Mintive connector you use (each setup guide lists the Entra app and scopes its connector uses), then connect Claude and ChatGPT to a Virtual MCP rather than granting each assistant its own SharePoint access.
  2. Give each team its own Virtual MCP. Grant Virtual MCPs to directory groups through SSO and SCIM, so the finance group's assistant reaches the finance site and the sales group's reaches the sales enablement site.
  3. Add the labels read gate to the labels-enabled SharePoint connector and restrict your Highly Confidential labels, or every label at or above a chosen priority.
  4. Turn off write tools where the use case is read-only, with tool customization on the Virtual MCP.
  5. Review the logs. Each call through the gateway is logged under the user's identity with its allow or block decision and reason, and the logs can go to your SIEM.
Mintive activity log entry for a blocked get_drive_item call on a board pack, showing the user, the SharePoint connector, the restricted Purview label and the middleware that blocked it
A blocked request in the activity log: who asked, which file, which label and which middleware version made the decision.

Microsoft 365 Copilot can use the same Virtual MCP through a Copilot Studio agent. For Copilot's built-in SharePoint search, keep Microsoft's controls in place as well, since Mintive governs the calls that route through its gateway and the two work together. Middleware, including the drive allowlist and the labels read gate, is available on the Enterprise plan. Tool results, file text included, pass through the gateway on their way to the assistant, and Mintive is SOC 2 Type II audited. The security overview covers its controls.

Frequently asked questions​

What can a ChatGPT or Claude SharePoint connector access?​

Everything the signed-in user can open. These connectors call Microsoft Graph as the user, so they inherit that user's SharePoint permissions, overshared sites included, unless something between the assistant and SharePoint narrows them.

Can I limit ChatGPT or Claude to one SharePoint site?​

Yes. Install SharePoint (Scoped Site) with that site's ID and connect the client to a Virtual MCP that includes it. Calls to other sites are refused, whatever the prompt asks for.

Do Claude and ChatGPT respect Purview sensitivity labels in SharePoint?​

They can when SharePoint access goes through Mintive's labels-enabled connector: every file comes back with its Purview label, and the labels read gate blocks files with restricted labels before they reach the assistant, whichever client asked.

Is Restricted Content Discovery enough?​

Not for Claude or ChatGPT. It reduces discovery in Copilot and organization-wide search while permissions are reviewed, but it doesn't change permissions, so an assistant opening files as the user isn't covered by it.

Does this replace fixing SharePoint permissions?​

No. Mintive never grants more than a user's own SharePoint permissions, and scoping AI access by site, library and label is what lets teams roll out Claude and ChatGPT while the permissions review continues.