Agent skill

Purview Copilot Oversharing

by vinayaklatthe in vinayaklatthe/microsoft-security-skills

Guidance for assessing and remediating oversharing before and during Microsoft 365 Copilot adoption, using SharePoint Advanced Management (SAM), sensitivity labels, restricted content discovery, and…

MITAuto-check passedDocuments & Office

Install Purview Copilot Oversharing

skills CLI
$ npx skills add vinayaklatthe/microsoft-security-skills --skill purview-copilot-oversharing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vinayaklatthe/microsoft-security-skills purview-copilot-oversharing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/purview-copilot-oversharing .claude/skills/purview-copilot-oversharing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
purview-copilot-oversharing
GitHub stars
175
Token cost
~1.6k tokens
SKILL.md length
659 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Guidance for assessing and remediating oversharing before and during Microsoft 365 Copilot adoption, using SharePoint Advanced Management (SAM), sensitivity labels, restricted content discovery, and…

  • Works in 7 steps: Assess - Use SharePoint Advanced… → Engage site owners - Notify owners of… → Classify & label - Apply sensitivity… → …
  • The goal is monitoring what sensitive data users are actively sending in AI prompts (use purview-dspm-ai)
  • SKILL.md covers When to use, Pick the right oversharing lever, Approach and Guardrails, plus 3 more sections
  • Calls make

What it does

Purview Copilot Oversharing is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for assessing and remediating oversharing before and during Microsoft 365 Copilot adoption, using SharePoint Advanced Management (SAM), sensitivity labels, restricted content discovery, and DLP for Copilot so Copilot only surfaces content users should access. Covers data access governance reports, EEEU cleanup, and ongoing governance. WHEN: Copilot oversharing, prepare data for Copilot, restrict Copilot access, SharePoint Advanced Management, data access governance, oversharing remediation, Copilot…

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering Cloud office suites. It works with Microsoft SharePoint and Microsoft 365. The repository describes itself as: Curated Microsoft Security skills for AI agents - Defender, Sentinel, Entra, Purview, Intune, Security Copilot. The licence is MIT.

When your agent uses it

  • The goal is monitoring what sensitive data users are actively sending in AI prompts (use purview-dspm-ai)
  • Tasks that involve Cloud office suites

Example prompts

  • “/purview-copilot-oversharing”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Assess - Use SharePoint Advanced Management (SAM) data access governance reports to
  2. Engage site owners - Notify owners of risky sites with the remediation expected; do not
  3. Classify & label - Apply sensitivity labels to sensitive content; container labels for
  4. Restrict - Use restricted access control / restricted content discovery (RCD) on
  5. Apply DLP for Copilot - Use DLP for Microsoft 365 Copilot to exclude labelled content from
  6. Govern lifecycle - Apply site lifecycle/access reviews to prevent regression; set inactive
  7. Monitor with DSPM for AI - Continuously surface unlabelled sensitive files Copilot can

What it can do on your machine

Read from SKILL.md and the folder at commit 15f16df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • learn.microsoft.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Purview Copilot Oversharing loads about 1.6k tokens when it runs. Until then it costs about 224 tokens; SKILL.md has 659 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~224
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vinayaklatthe/microsoft-security-skills at commit 15f16df, republished under its MIT licence (© vinayaklatthe). 659 words, ~1,586 tokens.

Download SKILL.mdSave it as .claude/skills/purview-copilot-oversharing/SKILL.md (or your agent's skills folder).
name
purview-copilot-oversharing
description
Guidance for assessing and remediating oversharing before and during Microsoft 365 Copilot adoption, using SharePoint Advanced Management (SAM), sensitivity labels, restricted content discovery, and DLP for Copilot so Copilot only surfaces content users should access. Covers data access governance reports, EEEU cleanup, and ongoing governance. WHEN: Copilot oversharing, prepare data for Copilot, restrict Copilot access, SharePoint Advanced Management, data access governance, oversharing remediation, Copilot readiness data security, limit Copilot content, Copilot is surfacing files users should not see, too many people have access to SharePoint sites, tighten up permissions before Copilot rollout, how do I make SharePoint Copilot-ready. DO NOT USE when the goal is monitoring what sensitive data users are actively sending in AI prompts (use purview-dspm-ai).
license
MIT
metadata.author
Microsoft
metadata.version
0.1.0

Microsoft 365 Copilot Oversharing Controls

Microsoft 365 Copilot honours existing permissions - so if content is overshared, Copilot can surface it to users who technically have access but shouldn't. This skill covers reducing that blast radius before and during Copilot rollout using SharePoint Advanced Management, sensitivity labels, restricted content discovery, and DLP for Copilot.

When to use

Preparing a tenant for Microsoft 365 Copilot and continuously controlling what Copilot can reach across SharePoint, OneDrive, and Teams.

Do not use this skill to monitor sensitive data in prompts (use purview-dspm-ai) or to design a broader DLP program (use purview-dlp-policy).

Pick the right oversharing lever

SymptomLever
"Everyone except external users" (EEEU) on too many sitesSAM data access governance report + permission cleanup
Sensitive content in broadly shared sitesSensitivity labels (encrypt) + container labels for sites
Site shows up in Copilot results when it shouldn'tRestricted content discovery (RCD) on the site
Labelled content should be excluded from Copilot groundingDLP for Microsoft 365 Copilot
Sharing links sprawlSAM sharing link report + cleanup policies

Rule of thumb: assess (DAG report) -> classify (labels) -> restrict (RCD, link policy) -> exclude (DLP for Copilot) -> govern (site lifecycle). Skipping the assess step is the most common failure.

Approach

  1. Assess - Use SharePoint Advanced Management (SAM) data access governance reports to find oversharing: "everyone/EEEU" access, broadly shared sites, sharing links, and permissioned but sensitive content. Verify: DAG report identifies top-N risky sites with owners.
  2. Engage site owners - Notify owners of risky sites with the remediation expected; do not remediate centrally without owner context. Verify: owner remediation tickets/issues opened with deadline.
  3. Classify & label - Apply sensitivity labels to sensitive content; container labels for sites; labels can encrypt and restrict, and Copilot respects label permissions. Verify: top-tier label encrypts and Copilot cannot surface the file to unauthorised test user.
  4. Restrict - Use restricted access control / restricted content discovery (RCD) on sensitive sites, tighten "everyone except external users" grants, and clean up sharing links. Verify: RCD-flagged site no longer appears in test user's Copilot answers.
  5. Apply DLP for Copilot - Use DLP for Microsoft 365 Copilot to exclude labelled content from Copilot processing where required. Verify: a test prompt referencing labelled content is excluded or warned.
  6. Govern lifecycle - Apply site lifecycle/access reviews to prevent regression; set inactive site policies in SAM. Verify: inactive sites archived or owners re-attested per cadence.
  7. Monitor with DSPM for AI - Continuously surface unlabelled sensitive files Copilot can access; loop back to label + restrict. Verify: weekly DSPM for AI report shrinks unlabelled-sensitive count.
Show full SKILL.md (241 more words)Show less

Guardrails

  • Remediate oversharing before broad Copilot enablement; a pilot can proceed on a scoped, clean set of sites but tenant-wide turn-on without assessment generates user complaints fast.
  • Sensitivity-label encryption is the strongest control - Copilot can't use content the user can't decrypt/extract; reserve for genuinely sensitive content.
  • Oversharing control is ongoing governance, not a one-time cleanup - new sites are created daily and sharing links sprawl without policy.
  • Coordinate with site owners; bulk permission stripping from the centre breaks legitimate collaboration and erodes trust in the program.
  • SAM is licensed separately (E5 / standalone SKU) - confirm before assuming reports are available.

Common anti-patterns

  • Enabling Copilot tenant-wide and then trying to remediate oversharing - users have already seen the wrong files.
  • Running the DAG report once, fixing the top 20 sites, and declaring done.
  • Encrypting everything with the top label "to be safe" - breaks external collaboration and Copilot grounding alike.
  • Restricted content discovery applied to half the tenant - users complain Copilot is useless.
  • Ignoring sharing links because the report is long.

Example prompts

  • Make SharePoint Copilot-ready by remediating oversharing.
  • Use SharePoint Advanced Management to tighten site permissions before Copilot.
  • How do I stop Copilot surfacing files users should not see?
  • Run data access governance to limit Copilot content.
  • Apply restricted content discovery to a sensitive site.

Microsoft Learn

© vinayaklatthe, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/purview-copilot-oversharing of vinayaklatthe/microsoft-security-skills.

Open the folder on GitHubat commit 15f16df

Compare with similar skills

Purview Copilot Oversharing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Purview Copilot Oversharing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Purview Copilot Oversharing this skillvinayaklatthe/microsoft-security-skills175—~1.6kAutomated safety check: PassMIT
Msgraphcodemie-ai/codemie-code294—~4.1kAutomated safety check: PassApache-2.0
aai-cli Microsoft 365aai-labs/agent-barn109—~1.2kAutomated safety check: PassApache-2.0
Workiqmicrosoft/work-iq1k—~15kAutomated safety check: PassCustom licence
Workiq Previewmicrosoft/work-iq1k—~3.3kAutomated safety check: PassCustom licence
Msgraph Filesautomateyournetwork/netclaw676—~1kAutomated safety check: PassApache-2.0

Similar skills

  • Msgraph

    codemie-ai/codemie-code

    Work with Microsoft 365 services via the Graph API — emails, calendar events, SharePoint sites (read and write), Teams chats and channel messages, OneDrive files, OneNote notebooks, Planner task…

    294 GitHub stars~4.1k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • aai-cli Microsoft 365

    aai-labs/agent-barn

    Guides work with Outlook, OneDrive, SharePoint, Teams, Excel, To Do and Planner through aai-cli's Microsoft Graph commands, starting from which service owns the data.

    109 GitHub stars~1.2k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Workiq

    microsoft/work-iq

    Official

    WorkIQ tools for Microsoft 365 workplace data and actions. An agent skill from microsoft/work-iq.

    1k GitHub stars~15k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Workiq Preview

    microsoft/work-iq

    Official

    WorkIQ tools for Microsoft 365 workplace data and actions. An agent skill from microsoft/work-iq.

    1k GitHub stars~3.3k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Msgraph Files

    automateyournetwork/netclaw

    Read OneDrive and SharePoint files via the Microsoft 365 MCP server — list folder contents, fetch item metadata, inspect versions and sharing permissions.

    676 GitHub stars~1k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Msgraph Visio

    automateyournetwork/netclaw

    Upload and retrieve Visio (.vsdx) and other diagram files in OneDrive/SharePoint via the Microsoft 365 MCP server.

    676 GitHub stars~1k tokensUpdated yesterday
    Documents & OfficeAuto-check passed

More from vinayaklatthe/microsoft-security-skills

All 50 skills in this repo
  • API Security Design

    vinayaklatthe/microsoft-security-skills

    Guidance for designing secure APIs on Azure - authentication, authorization, gateway controls, input validation, rate limiting, secret management, and runtime threat detection - aligned to OWASP API…

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure App Service Security

    vinayaklatthe/microsoft-security-skills

    Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening…

    175 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Arc

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Arc — projecting on-premises, multicloud (AWS/GCP), and edge servers, Kubernetes, and data services into Azure Resource Manager for unified governance, security, and management.

    175 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Bastion Jit

    vinayaklatthe/microsoft-security-skills

    Guidance for secure remote VM management in Azure using Azure Bastion combined with Defender for Cloud just-in-time (JIT) VM access.

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Confidential Computing

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Confidential Computing — protecting data in use through hardware-based Trusted Execution Environments (TEEs).

    175 GitHub stars~2.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Ddos Protection

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure DDoS Protection — Network Protection (per-VNet) and IP Protection (per public IP) tiers built on the same always-on Microsoft platform.

    175 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Purview Copilot Oversharing

What does Purview Copilot Oversharing do?

Guidance for assessing and remediating oversharing before and during Microsoft 365 Copilot adoption, using SharePoint Advanced Management (SAM), sensitivity labels, restricted content discovery, and…. Purview Copilot Oversharing is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for assessing and remediating oversharing before and during Microsoft 365 Copilot adoption, using SharePoint Advanced Management (SAM), sensitivity labels, restricted content discovery, and DLP for Copilot so Copilot only surfaces content users should access.

When should I use Purview Copilot Oversharing?

Purview Copilot Oversharing fits situations like: the goal is monitoring what sensitive data users are actively sending in AI prompts (use purview-dspm-ai); tasks that involve Cloud office suites.

How do I install Purview Copilot Oversharing in Claude Code?

Run `npx skills add vinayaklatthe/microsoft-security-skills --skill purview-copilot-oversharing -a claude-code`. Or copy the skill folder (skills/purview-copilot-oversharing in vinayaklatthe/microsoft-security-skills) into .claude/skills/purview-copilot-oversharing in your project. Claude Code loads it when a task matches its description.

How do I install Purview Copilot Oversharing in Codex?

Run `npx skills add vinayaklatthe/microsoft-security-skills --skill purview-copilot-oversharing -a codex`. Or copy the skill folder (skills/purview-copilot-oversharing in vinayaklatthe/microsoft-security-skills) into .agents/skills/purview-copilot-oversharing in your project. Codex loads it when a task matches its description.

Can I use Purview Copilot Oversharing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vinayaklatthe/microsoft-security-skills --skill purview-copilot-oversharing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/purview-copilot-oversharing, .gemini/skills/purview-copilot-oversharing, .github/skills/purview-copilot-oversharing and .opencode/skills/purview-copilot-oversharing in your project.

What does Purview Copilot Oversharing need to run?

Going by SKILL.md and its folder, Purview Copilot Oversharing needs the command-line tools its instructions call (make).

Does Purview Copilot Oversharing access the network?

SKILL.md names 1 domain. As links in the text: learn.microsoft.com. This is read from the text; nothing was executed.

Is Purview Copilot Oversharing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Purview Copilot Oversharing use?

Purview Copilot Oversharing is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Purview Copilot Oversharing use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Purview Copilot Oversharing?

Skills that share tags, products or a category with Purview Copilot Oversharing: Msgraph (codemie-ai/codemie-code, 294 stars), aai-cli Microsoft 365 (aai-labs/agent-barn, 109 stars), Workiq (microsoft/work-iq, 1k stars) and Workiq Preview (microsoft/work-iq, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Purview Copilot Oversharing?

vinayaklatthe (a GitHub user) maintains it in vinayaklatthe/microsoft-security-skills, which has 175 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on June 18, 2026.

Source: vinayaklatthe/microsoft-security-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.