sharepoint-audit
Guide and run a SharePoint audit locally. Collect inputs, confirm PowerShell 7.4+ and Python 3.10+ are available, call PowerShell with certificate auth via wrapper, parse audit.json, and render Markdown/HTML. Use only local shell commands.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
SharePoint Audit Skill
When to use
- A user needs to audit SharePoint Online permissions for one site or a CSV-defined batch.
- The operator can run PowerShell 7.4+, Python 3.10+, and PnP.PowerShell locally.
What to do
- Ask for: Tenant ID, App (Client) ID, PFX path, internal domains, site URL or CSV, and confirm
PFX_PASSis set. - Run:
-
pwsh ./sharepoint-audit-agent/agent/powershell/Install-Modules.ps1 -
python ./sharepoint-audit-agent/agent/python/audit_agent.py … --output ./runs
-
- On success, show
./runs/<timestamp>/site-*/report.htmland remind the user that the file contains sensitive data.
Rules
- Only run local commands. Do not fetch from the internet beyond module installs.
- Never echo secrets. Read PFX password from env var.
- Default Sites.Selected scope to Read; only pass
--sites-selected-permission Writeif the user explicitly authorizes it.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-28
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!