analyzing-access
Skill by jschuller
Reviews who holds which ServiceNow roles and groups, and explains 401 and 403 errors, empty results and missing fields. Built for access reviews, least-privilege checks and user hygiene. Read-only.
Install analyzing-access
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jschuller/mcp-server-servicenow /tmp/mcp-server-servicenow && mkdir -p ~/.claude/skills && cp -r /tmp/mcp-server-servicenow/src/servicenow_mcp/skills/analyzing-access ~/.claude/skills/analyzing-accessRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jschuller/mcp-server-servicenow /tmp/mcp-server-servicenow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mcp-server-servicenow/src/servicenow_mcp/skills/analyzing-access ~/.gemini/antigravity-cli/skills/analyzing-accessAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
analyzing-access is an agent skill for reviewing who holds which ServiceNow roles and groups, and for explaining access denials. It lists admin and security_admin holders, roles granted directly instead of through groups, and roles left on inactive or long-absent users. It also diagnoses 401 and 403 errors, empty results and missing fields.
It works through read-only queries against sys_user_has_role, sys_user_grmember, sys_group_has_role and sys_user. It joins these tables with dot-walks such as role.name and group.name, and covers team rosters and counting how many people hold a role. It is aimed at administrators running access reviews, least-privilege checks and user or group hygiene. The skill is version 2.1.0, MIT licensed, by jschuller.
Written from the project's SKILL.md and checked against it.
What it can do
- Privileged role reviewLists active admin and security_admin grants with user context for review.
- Direct grant reviewFinds roles granted directly to active users instead of through groups.
- Inactive user rolesFinds roles still held by deactivated users.
- Stale login checkFlags active users with no login for 90 days or who never logged in.
- Denial diagnosisClassifies 401 and 403 errors, empty results and missing fields using reference notes.
- Team rostersLists group members and their departments in one call using dot-walks.
- Role holder countCounts distinct people holding a role with aggregate_records, not grants.
- ACL explanationExplains why a user cannot see a record, using ACL evaluation notes.
What you need
- A ServiceNow instance
- An account with the itil role for reads across users' role and group rows
- An account with the snc_read_only role for user reads
Try asking
- Who holds the admin and security_admin roles on our instance?
- List roles granted directly to active users instead of through groups.
- Why did this user get a 403 when reading the incident table?
Good to know
- Read-only: it recommends role removals but does not make them.
- Reading sys_security_acl needs admin or security_admin, so least-privilege identities get a 403.
- A role's dot-walked name can come back empty when the identity cannot read the referenced record.
- The granted_by field is deprecated by ServiceNow and should not be relied on.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/servicenow_mcp/skills/analyzing-access/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to analyzing-access
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
analyzing-access: common questions
Does analyzing-access change roles or groups in ServiceNow?
No. The source says everything here is read-only, and it recommends role removals for a person to make.
Why does a role show an empty name in the results?
The source notes that role.name can come back empty for admin and security_admin when the identity cannot read the role table, while a filter on role.name=admin still matches.
How does it count people who hold a role?
It uses aggregate_records grouped by user, since one person can hold a role both directly and through several groups, each as its own row.
How do I install analyzing-access?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is analyzing-access free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is analyzing-access safe to use?
It scores 55 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to analyzing-access?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
