ACL Explainer AI agent

access-acl-explainer-ai-agent.md
Raw file

The agent explains how access control lists (ACLs) are configured. It reads one or more ACLs that govern a table or field for an operation, and describes their roles, conditions, scripts, and admin overrides. The agent is read-only: it doesn't evaluate access, recommend changes, or modify ACLs.

Workflow

The agent helps the user understand the rules that govern a resource or operation in their instance.

  1. Provide the name of an ACL, a table or table field, or the sys_id or record URL of an ACL.
  2. If the name matches more than one resource type, choose the resource type you want explained.
  3. Name an operation, such as read or write, or choose one from the list of available operations with the number of ACLs for each.
  4. Review the decision type, required roles, security attribute, and data condition for the ACL.
  5. Review how any script in the ACL behaves and whether an admin override applies.
  6. Narrow the results by decision type, creation or update date, field, or active status, if needed.

Field

Description

Allow third party to access this AI agent

When enabled, third-party AI agents can use this agent. This value is off (false) by default. This setting is defined in the AI Agent configs [sn_aia_agent_config] table on the External discoverable field.

Allow AI specialists to access this AI agent

When enabled, AI specialists can use this agent. This value is off (false) by default. When set to true, more configuration options for tools become available so that an AI specialist can map inputs and response templates to tool outputs. This setting is defined in the AI Agent configs [sn_aia_agent_config] table on the Specialist enabled field.

Manage long-term memory

When enabled, all previous user interactions are used as context for the LLM. This value is off (false) by default. This setting is defined by the sn_aia.ltm.enable_long_term_memory system property. For more information, see ServiceNow Otto AI agents reference.

Tools

  • Script

Explain a specific ACL

Show available operations

Summarize applicable ACLs

Allowed user roles The specific user roles that can access this AI agent.

admin, access_analyzer_admin

Data access roles The specific user identity roles that determine which data the AI agent can access and what actions it can take.

admin, access_analyzer_admin

Triggers

Optional. None defined by default. An admin can specify triggers if desired. For more information, see Add a trigger to an AI agent.

Channels

Configure an assistant for Virtual Agent or ServiceNow Otto panel using Assistant Designer.

Used in agentic workflows

ACL Intelligence Workflow

Learn more about ACLs at [Access Control Lists \(ACLs\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-security/access-control-rules.md).

Parent Topic:ServiceNow AI Platform AI agents

Using the ACL explainer AI agent

Ask the ACL Explainer AI agent about an access control list (ACL), a table, a field, or another resource in everyday language. Sample prompts and examples show how to phrase questions and the responses to expect.

Your wording doesn't have to match the sample prompts. The agent uses the names that you provide, such as an ACL name, table, field, or resource name. Explanations include rules inherited from parent tables, which can help you troubleshoot access. The agent also flags ACLs that exist but are inactive.

Remember that the agent is read-only. It can't update or delete an ACL or change ACL evaluation logic. For more information on how the agent is configured, see ACL Explainer AI agent.

Prerequisites

Activate the agent in AI Agent Studio.

To run the agent, you must have the admin or access_analyzer_admin role.

Sample prompts for a single ACL

The following table lists sample prompts and results for a specific ACL.

Prompt

Result

Explain this ACL

Explains the ACL that you have open in ServiceNow.

Explain acl 8cdd4d2053753210d90aef0910e5e658

Explains the ACL with that sys_id.

Explain the write ACL for incident.state

Interprets incident.state as the resource and write as the operation.

What does the *.name ACL do?

Explains the rule for every field named "name" on every table.

Walk me through the script in this ACL

Provides a step-by-step walkthrough of the script, with notes on its complexity and performance.

### Decode an unfamiliar ACL script

You open an ACL that you didn't write and enter Explain this ACL. The agent explains what the rule controls, for whom, and why.

The ACL includes a script that you want to understand. You enter Walk me through the script in this ACL. The agent returns a step-by-step explanation in plain English, with notes on the script's complexity and performance. To ask about one part of the ACL only, enter a follow-up prompt such as What roles does this ACL need?.

Sample prompts for ACLs on a table

The following table lists sample prompts and results for the ACLs on a table.

Prompt

Result

Explain ACLs of incident table

Includes rules inherited from the task table and prompts you to choose an operation to explain.

Explain read ACLs of incident table

Describes the evaluation order, then the combined roles, conditions, and scripts.

Explain the deny unless read ACLs on incident

Filters the results to Deny-Unless ACLs. Filters for Allow-If, wildcard, and inherited ACLs work the same way.

### Explore the ACLs on a table

You want to know what controls access to incident records.

In the ServiceNow Otto panel, you enter Explain ACLs of incident table. The agent lists each operation with its number of ACLs, including rules inherited from the task table, and prompts you to choose an operation.

You choose the read operation. The agent describes the evaluation order for the read ACLs, then the combined roles, conditions, and scripts.

You then enter Can an admin bypass it?. Because the agent retains the table and operation, it answers only that part of your question and doesn't repeat the full explanation.

Sample prompts for ACLs on a field

The following table lists sample prompts and results for ACLs on a field.

Prompt

Result

Explain field ACLs of incident table

Lists the field operations with the number of ACLs for each, then explains the operation that you choose.

Give the query_range ACLs applied to sys_user_group.name

Explains the query_range ACLs that are evaluated for the name field on the sys_user_group table.

What does task.* ACL mean and where is it applicable?

Explains the task.* ACL and the tables and fields that it applies to.

### Find the rule in force for a field

You enter How is writing controlled on the priority field of incident?. The agent follows the field hierarchy to find the rule that applies.

If no incident.priority ACL exists, the agent explains the task.priority ACL instead, because the incident table inherits it from the task table. The agent links to the ACL record so that you can verify the rule. If a more specific rule exists but is inactive, the agent flags it.

Check who can search on a field

You enter Who can search on the short_description field of change_request?. The agent explains the query_range ACLs on the field, which control who can filter and search on it.

Sample prompts for ACLs on non-table resources

Some resources, such as GraphQL schemas, web services, and flows, don't have an ACL with their own name. The ACL that is referenced in the resource definition protects them. Enter the name of the resource, and the agent finds and explains that ACL. The agent also covers UI pages and processors.

The following table lists sample prompts and results for ACLs on resources that aren't tables.

Prompt

Result

Show me ACL for Agent Chat Dynamic Translation

Explains the ACL configured in a GraphQL schema definition.

Show me ACL for ACE Contents

Explains the ACL configured in a web service definition.

Show me ACL for Get topics data for user

Explains the ACL configured for a flow or action.

Explain acl for Record Summarization

Explains the ACL on a REST endpoint.

Search documentation
Search document titles and file paths on the australia branch