List ACLs
list_aclsLists ServiceNow access control records and their roles by table, name, scope, or scope ID to audit permissions and determine which users can access records, fields, UI pages, or endpoints.
Instructions
List access controls (sys_security_acl) with their roles. Needs at least one of table, name, scope or scope_id. table returns the table's own ACLs: table, table.* and table.<field> (not the parent tables'; list those too). Roles on one ACL are alternatives; snc_internal among them lets every internal user pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact ACL name, e.g. incident.short_description or a UI page name. | |
| type | No | ACL type: record, ui_page, rest_endpoint, client_callable_script_include, ... | |
| scope | No | Only this application's ACLs: a scope name, or "global". | |
| table | No | ACLs of this table: the table, table.* and table.<field>. | |
| active | No | Only active (true) or inactive (false) ACLs. | |
| elevate | No | Read elevated to security_admin, so roles hidden until then show their names. Ask the user first. | |
| instance | No | The ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| scope_id | No | Only this application's ACLs, by sys_scope sys_id. | |
| operation | No | Operation name: read, write, create, delete, execute, ... |