/
/
Review who holds admin in ServiceNow and who should not
For security and IT teams who want every privileged role grant in ServiceNow checked for stale, inactive and direct holders, by asking their AI assistant.
On this page
Connector
Connect ServiceNow, pick your AI tool and paste the prompt.
The problem
Admin rights that pile up and never come off
Admin and other privileged roles in ServiceNow accumulate over time. Inactive accounts, stale logins and direct grants that bypass groups all carry risk, and reviewing them means checking role records against users one by one.
Without PopdockAI
- Export role grants and user records
- Match them up and check login dates
- Work out which grants bypass groups
- Leave risky grants for the auditor to find
With PopdockAI
- Every active grant of the role and its holder are read
- Inactive holders, stale logins and direct grants are flagged
- Possible source groups are named for inherited grants
- Read only, with recommended removals and reasons
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** List everyone holding role `{role}` (default admin) and flag grants that should be reviewed, treating no login in `{stale-days}` days (default 90) as stale.
**Step 1: Pull the grants**
Call `servicenow-get-user-role` with role `{role}` (admin if blank) and state Active.
**Step 2: Check each holder**
For each distinct user call `servicenow-get-user` with name set to them. Note active, last-login-time, department, title and manager.
**Step 3: Apply the rules**
Flag a grant when:
* the user is inactive (should have been removed)
* last-login-time is older than `{stale-days}` days, or empty
* inherited is false (a direct grant that bypasses group-based access control)
* the user holds it both directly and inherited (redundant direct grant)
* granted-by is empty for a direct grant (no audit trail)
For inherited grants, call `servicenow-get-group-member` with user set to the holder to name the groups it could come from.
**Step 4: Report**
* Totals: holders, direct grants, inherited grants, flagged.
* A table, flagged first: user, user-id, active, last login, department, direct or inherited, granted-by, groups, flags.
* Recommended removals, each with the reason.
**Rules & Guidelines:**
* Read-only. Do not call `servicenow-add-user-role`, `servicenow-update-user-role`, `servicenow-update-user`, `servicenow-add-group-member` or any other add- or update- tool.
**Validation:**
* If nobody holds `{role}`, say so and check the role name.Who it's for
One answer, three teams that use it
IT security
Find risky admin grants
See inactive and stale admin holders and direct grants with no record of who granted them.
Review the admin role in ServiceNow and flag anyone with no login in 60 days.
ServiceNow administrators
Move access back to groups
Find direct grants that bypass group based access, including redundant ones.
Which itil role grants in ServiceNow are direct rather than through a group?
IT auditors
Prepare access reviews quickly
Get totals and a table of flagged holders with reasons, ready for review.
Prepare a privileged access review of the security_admin role in ServiceNow.
How it works
What PopdockAI does when you ask
You name the role and a stale login threshold, and your AI assistant reviews who holds it. It recommends removals and changes nothing.
01
Ask
You name the role, admin by default, and a stale login threshold.
02
Read
It reads every active grant of that role and each holder's account.
03
Check
It flags inactive or stale holders and direct grants that bypass groups.
04
Report
You get totals, flagged holders first and recommended removals with reasons.
What PopdockAI provides
The tools behind the answer
Ready made tools for ServiceNow and one secure connection to your AI tool. No code, no exports.
servicenow-get-user-role
servicenow-get-user
servicenow-get-group-member
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
Privileged access reviewed with evidence
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
