Λογότυπο Analyzing Access

Analyzing Access

Κοινότητα
jschuller
analyzing-access

Reviewing who holds which ServiceNow roles and explaining access denials. Lists admin and security_admin holders, roles granted directly instead of through groups, roles left on inactive or long-absent users, and diagnoses 401/403 errors, empty results and missing fields. Joins users, groups and roles through dot-walks: team rosters, role holders with their groups, how many people hold a role. Use when the user asks who has admin, a role or access review, least privilege, user or group hygiene, who is in a group, why a query returned nothing, why a field is missing, 'why did I get a 403', 'why can't user X see Y', or ACLs.

Επισκόπηση

Εκδότηςjschuller
Αποθετήριοmcp-server-servicenow
Όνομα δεξιότηταςanalyzing-access
Αστέρια
27
Forks
10
Συνοδευτικά αρχεία
2
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 2 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από jschuller στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Analyzing Access στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/jschuller/mcp-server-servicenow/tree/main/src/servicenow_mcp/skills/analyzing-access
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jschuller/mcp-server-servicenow.git /tmp/mcp-server-servicenow
mkdir -p .claude/skills
cp -r /tmp/mcp-server-servicenow/src/servicenow_mcp/skills/analyzing-access .claude/skills/analyzing-access
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Analyzing Access σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Analyzing Access μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Analyzing Access δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Analyzing ServiceNow Access

Two jobs: review role and group hygiene across users, and explain why a call was denied or came back incomplete. Everything here is read-only. See references/access-errors.md for the denial messages and what each one means, and references/acl-evaluation.md for how ServiceNow decides access.

Tables and roles

TableWhat it answersReadable with
sys_user_has_roleWhich user holds which role, directly or inheriteditil (all users' rows); snc_read_only alone gets 403
sys_user_grmemberGroup membership; group names come from sys_user_group through group.nameitil
sys_group_has_roleWhich roles a group grantsitil
sys_useractive, last_login_timesnc_read_only
sys_security_aclThe ACL rules themselvesadmin / security_admin only: 403 for least-privilege identities

Role names come through dot-walks (role.name). The role table itself (sys_user_role) usually hides some or all of its rows from least-privilege identities, so role.name can come back empty (observed for admin and security_admin) while a filter on role.name=admin still matches. Workflow 5 covers dot-walks and their limits.

When access is denied

  • 403 on a table: not assessable with this identity. Say so, name the table, and move on; don't guess.
  • 0 rows or fields missing from every row (list_records adds a warning): possibly hidden by an ACL, not proof that nothing exists.
  • 401 under API-key auth on aggregates or single-record reads: a REST API access policy doesn't cover that API; table reads still work.

Workflows

1. Who holds privileged roles

Progress checklist:

- [ ] List active admin and security_admin grants
- [ ] Flag inactive users and stale logins among them
- [ ] Separate direct grants from group grants
- [ ] Report counts and the accounts to review
  1. List the grants, with enough user context to judge each one:
    list_records(table_name="sys_user_has_role", query="role.nameINadmin,security_admin^state=active", fields="user.user_name,user.active,user.last_login_time,role,role.name,inherited", limit=200)
    If role.name comes back empty, tell the two roles apart by the role sys_id, or run the query once per role.
  2. A row with inherited=false is a direct grant. An inherited row came through a group or through a role that contains this one. To find the group, intersect the user's groups with the groups that grant the role (workflow 2, step 3):
    list_records(table_name="sys_user_grmember", query="user.user_name=<user>", fields="group.name", limit=100)
    granted_by still names the group on some instances, but ServiceNow has deprecated it, so don't rely on it.
  3. Report the holder count per role, then the accounts to review first: inactive users, users with no recent login, and direct grants.

2. Roles granted outside groups

ServiceNow recommends granting roles through groups, so that moving a person between teams moves their access.

  1. List direct grants on active users:
    list_records(table_name="sys_user_has_role", query="inherited=false^state=active^user.active=true", fields="user.user_name,role.name", limit=500)
  2. Group the rows by role and by user. Many direct grants of the same role suggest a missing group.
  3. Check which groups already grant that role:
    list_records(table_name="sys_group_has_role", query="role.name=<role>", fields="group.name,role.name,inherits", limit=50)

3. Roles left on inactive or long-absent users

  1. Roles on deactivated users:
    list_records(table_name="sys_user_has_role", query="user.active=false^state=active", fields="user.user_name,role.name,inherited", limit=500)
  2. Active users who have not logged in for 90 days, and active users who have never logged in:
    list_records(table_name="sys_user", query="active=true^last_login_timeRELATIVELT@dayofweek@ago@90", fields="user_name,last_login_time", limit=500)
    list_records(table_name="sys_user", query="active=true^last_login_timeISEMPTY", fields="user_name", limit=500)
  3. Cross-check the users from step 2 against their roles (workflow 1, filtered by user.user_name). Integration and service accounts may never log in interactively, so confirm what an account is before calling it stale.

4. Explain a denial or an incomplete answer

Progress checklist:

- [ ] Capture the exact status and message
- [ ] Classify it with references/access-errors.md
- [ ] Check the caller's own roles
- [ ] Say what is and isn't assessable, and the next step
  1. Take the status code and the message text exactly as returned; the message names the mechanism.
  2. Classify it with references/access-errors.md.
  3. Check the caller's roles with get_current_user(). It lists direct grants; inherited roles come through groups.
  4. For "why can't user X see record Y": read X's roles and groups (workflow 1 filtered to that user), then explain from the role side using references/acl-evaluation.md. The ACL rules themselves need admin. Without them, say the rule-level answer is not assessable with this identity, and point an admin to ServiceNow's Access Analyzer, or to the Access Analysis agent where it is licensed.

5. Join through dot-walks

A dot-walk (group.name, user.department.name) reads a field of the referenced record in the same call. Use dot-walks in fields= and query= instead of reading two or three tables and joining them by sys_id yourself.

Progress checklist:

- [ ] Start from the table that holds the link: a membership or a grant
- [ ] Put the dot-walked fields in fields= and the conditions in query=
- [ ] Count people, not rows, when the question is "how many people"
- [ ] Check empty and missing dot-walked values before reporting
  1. A team roster, in one call. Each row is one membership, with group and person fields read through the references:
    list_records(table_name="sys_user_grmember", query="group.name=<group>^user.active=true", fields="group.name,user.user_name,user.name,user.active,user.department.name", limit=200, order_by="user.name")
    Drop ^user.active=true to see deactivated users who are still members (workflow 3).
  2. Role holders with their groups. First the groups that grant the role, then all their members in one call:
    list_records(table_name="sys_group_has_role", query="role.name=<role>^group.active=true", fields="group,group.name,inherits", limit=100)
    list_records(table_name="sys_user_grmember", query="groupIN<group_sys_id>,<group_sys_id>^user.active=true", fields="group.name,user.user_name,user.active", limit=500, order_by="group.name")
    Filter on the group sys_ids, not on group names: a name can hold a comma, and IN splits on commas. Direct holders are the inherited=false rows of workflow 2. An inherited grant with no matching group came through a role that contains this one.
  3. How many distinct people hold a role:
    aggregate_records(table_name="sys_user_has_role", query="role.name=<role>^state=active", group_by="user")
    Each group in the result is one person, so the number of groups is the number of people. A plain count (the same call without group_by) counts grants, not people. One person can hold the same role directly and through several groups, and each grant is its own sys_user_has_role row: on a Brazil instance, one user held itil in two active rows, one direct and one inherited. display_value="all" shows user names next to the sys_ids. If aggregate_records is refused, list the rows with fields="user" and count the distinct values. Don't count people with an RLQUERY on sys_user: the conditions inside the block were ignored, so it counted every user with any role.
  4. Know the limit: a dot-walk reads only what this identity can read.
    • A field that an ACL hides, or a name that doesn't exist, is missing from every row. list_records names it in its warning, also when it appears only in query=.
    • A referenced record that the identity can't read gives an empty value, or leaves the dot-walked key out of the row. Observed: role.name came back empty, or not at all, on admin grants, while role.name=admin still matched them. When every row leaves it out, the warning names the dot-walk and says the condition may still have applied: compare against a value that can't match (role.name=no_such_role) to tell. Report an empty dot-walked value as "not readable or not set", and add the reference itself (role, group, user) to fields=: its sys_id still comes back.

Tips

  • A page can hold fewer rows than limit even when more readable records exist: the Table API applies the limit before ACLs remove rows. Keep paging with offset until a page comes back empty.
  • Role changes take effect at the user's next session, so a fresh grant may not show in that user's current denials.
  • Compare counts before trusting a filter. A condition on a field the identity can't read, or an operator ServiceNow doesn't recognise, is ignored rather than rejected, so the "filtered" result equals the unfiltered one.
  • aggregate_records can count rows that list_records won't return. A count above the rows you can list means row-level ACLs are hiding records.
  • list_records and list_ci check the fields you filter on in query= as well as those in fields=: if one is hidden or misspelled, the warning names it. A dot-walk in query= is checked whole only when you pass fields=.
  • Never read ACL script or condition bodies, or any field that can hold credentials, even with an admin identity. Names and counts answer hygiene questions.
  • Treat the review as read-only. Recommend role removals; don't make them.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Analyzing Access;

Reviewing who holds which ServiceNow roles and explaining access denials. Lists admin and security_admin holders, roles granted directly instead of through groups, roles left on inactive or long-absent users, and diagnoses 401/403 errors, empty results and missing fields. Joins users, groups and roles through dot-walks: team rosters, role holders with their groups, how many people hold a role. Use when the user asks who has admin, a role or access review, least privilege, user or group hygiene, who is in a group, why a query returned nothing, why a field is missing, 'why did I get a 403', '...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Analyzing Access στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Analyzing Access είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Analyzing Access στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/jschuller/mcp-server-servicenow/tree/main/src/servicenow_mcp/skills/analyzing-access. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Analyzing Access;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Analyzing Access;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Analyzing Access με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Analyzing Access;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη jschuller με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇