guest-access-reviewer

guest-access-reviewer is a skill for Claude Code, Codex from pnp/sharepoint-skills. It costs 0 tokens per session (1,985 once invoked), scanned A, original, MIT.

A read-only SharePoint audit that lists guest and external users with access to a site, the groups and permission levels they have, and accounts with no activity for more than 90 days.

In plain words
What is it for?
Use it to audit guest access, identify external collaborators, review sharing, and produce an HTML report of accounts needing attention.
Why use it?
It makes external access visible so site owners can review old or unnecessary accounts without changing permissions automatically.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit guest access, identify external collaborators, review sharing, and produce an HTML report of accounts needing attention.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pnp/sharepoint-skills/guest-access-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pnp/sharepoint-skills --skill guest-access-reviewer
Clone the repo
git clone --depth 1 https://github.com/pnp/sharepoint-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for guest-access-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/pnp/sharepoint-skills/guest-access-reviewer/github.svg)](https://agentmods.dev/skills/pnp/sharepoint-skills/guest-access-reviewer)
Your own site
<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/guest-access-reviewer"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/guest-access-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for guest-access-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/pnp/sharepoint-skills/guest-access-reviewer"><img src="https://agentmods.dev/badge/skills/pnp/sharepoint-skills/guest-access-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,985 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01985
Opus 5.5 $0.00000 $0.00794
Sonnet 5.5 $0.00000 $0.00397
Haiku 4.5 $0.00000 $0.00198

Measured 24d ago against content hash 1f9042be6f9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

guest-access-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Skills/guest-access-reviewer/guest-access-reviewer/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Guest Access Reviewer

Purpose

External collaborators accumulate on SharePoint sites over time — vendors, contractors, and clients who finished their engagement but were never removed. This skill enumerates every guest and external user who has access to the current SharePoint site, maps the groups and permission levels they hold, flags accounts that appear stale (no activity in 90+ days), and saves a self-contained HTML report that site owners and governance teams can act on. It is strictly read-only: it never removes users, modifies permissions, or changes any site content.

Trigger Phrases

Activate this skill when the user says any of the following (or close variations):

  • "guest access review" / "guest access audit"
  • "audit external users" / "external user audit"
  • "who has guest access" / "which guests have access"
  • "review external sharing" / "external access review"
  • "find stale guests" / "stale external users"
  • "who are the external collaborators on this site"
  • "check guest accounts"

Inputs & Scope

Determine the scope from the user's request:

  • Current site (default) — audit all guest users who have access to the current SharePoint site through any mechanism: SharePoint groups, direct role assignments, or sharing links.
  • Named site — if the user names a specific site, resolve that site and audit it instead.

If no scope can be resolved, default to the current site and note that assumption in the report. Do not scan multiple sites unless the user explicitly asks.

What counts as a guest or external user

Identify the following as guest or external users:

  • Accounts whose User Principal Name (UPN) contains #EXT# — the standard Azure AD guest account marker
  • Accounts in the _spo_ guest account format used by SharePoint sharing
  • Accounts with an email domain that differs from the host organization's primary domain(s) when this can be determined from context
  • Users explicitly shown as "Guest" in SharePoint user information

Read the full file on GitHub · 189 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago First seen · 189 lines · 0 tokens per session scan A 1f9042be6f9f

Subscribe to this mod's changes

guest-access-reviewer is a skill published in the GitHub repository pnp/sharepoint-skills (137 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,985 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.