---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Role masking for AI agents

# Role masking for AI agents {#ariaid-title1}

Release version: Brazil  
Updated October 8, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Role masking for AI agents

Role masking for AI agents and agentic workflows in ServiceNow enhances security by restricting the roles AI agents use during execution.
This ensures AI agents run with least-access privileges, limiting their permissions to only what is necessary for the tasks they perform.
Without role masking, an AI agent inherits all roles of the triggering user, potentially granting excessive access.
Role masking confines the agent's runtime roles to those essential for its tools and tasks, reducing risks from errors or misuse and simplifying audit processes.
Show full answer Show less  

## Key Features

* **Role Intersection Enforcement:** AI agents and workflows run with roles that are the intersection of the invoking user's roles and a predefined approved roles list.
* **Dynamic User vs AI User:** Administrators can configure components to run as a dynamic user with role masking or as an AI user without role masking. Running as an AI user grants the agent all roles assigned to that user, potentially providing elevated access.
* **Configurable Role Masking:** Role masking applies only when components run as dynamic users. It cannot be applied when running as AI users.
* **Dynamic Role Addition:** Multiple roles can be added individually to an AI agent's role masking configuration via records in the Agent Access Role Mapping table, enabling business units to manage roles independently.

## Prerequisites

* ServiceNow Now Assist for Platform version 10.0.2-SS or higher.
* snaia.admin privileges are required to configure role masking.

## Practical Benefits for ServiceNow Customers

By implementing role masking, ServiceNow customers can:

* Limit AI agents' access to only necessary roles, minimizing security risks.
* Control and audit AI agent behavior more effectively.
* Allow multiple business units to independently manage role permissions for shared AI agents, supporting tailored access needs without conflict.
* Maintain elevated access for AI agents when needed by running them as AI users, while still offering the option to apply strict role restrictions with dynamic users.  
Role masking for AI agents and agentic workflows helps administrators enhance security by limiting the roles those agents use during tool execution, and by verifying that AI agents run with least-access privileges.

An AI agent runs tools, queries data, and updates records on behalf of the user who triggered it. Without role masking, the agent inherits all of the triggering user's session roles, which can give the agent more access than its
specialty requires.

Role masking lets you restrict the AI agent's runtime role set to only the roles needed for the agent's tools and tasks. By limiting the role set, you reduce the blast radius of any prompt-driven error or misuse, and you make the
agent's behavior easier to audit.

## Role masking rules {#role-masking__section_pfn_g2l_pjc}

1. Role masking limits the roles with which an agentic workflow, AI agent or Skill can execute to the intersection between the roles assigned to the invoking user and the roles included in the role masking approved roles list.
2. AI user vs Role mask:The AI admin can choose for the component to run as either an AI user or a dynamic user. If set to run as a dynamic user, the AI admin can configure role masking for the component. Role masking can't be
   configured for agentic workflows or AI agents set to run as AI users.

   * If an AI user is selected, all roles assigned to the AI user are available to the agentic workflow or AI agent. This can be used to provide elevated access to the agentic workflow AI agent.
   * If Role masking is applied to an agentic workflow, AI agent, or tool running as a dynamic user, the component runs with roles with roles limited to the intersection of the current invoking user's roles and the roles included in the role masking approved roles list.
   {#role-masking__aia-role-masking_ul_qgr_bql_ghc}

{#role-masking__aia-role-masking_ol_z3m_qpl_ghc}

To know more about AI agent role masking, see [Role masking in AI agents](https://www.servicenow.com/docs/access?context=aia-role-masking&version=brazil&pubname=brazil-intelligent-experiences&ft:locale=en-US).

## Prerequisites {#role-masking__section_rtj_c2l_pjc}

To configure role masking on your ServiceNow instance, you must have:

* Now Assist for Platform version 10.0.2-SS.
* The <kbd class="ph userinput">sn_aia.admin</kbd> privileges.
{#role-masking__aia-role-masking_ul_gm3_zml_ghc}

## Dynamic role addition {#role-masking__aia-dynamic-role-masking}

You can add multiple roles to an AI agent's role masking configuration as individual records, rather than as a single delimited list. Each role you add through the embedded list on the Agent Access Role Configuration form creates a record in the Agent Access Role Mapping table.  
Note:  
Existing records with the `role_list` column continues to operate as expected. All new role configurations is implement through the `sys_agent_access_role_mapping` table.

This design supports the common case where different Business Units can use the same AI agent. The agent is shipped with a minimum set of roles, and each Business Unit can add the specific roles based on their use case. Since each
role is a separate record in the table, Business Units can add and remove their own role entries independently, without affecting the role entries owned by other teams. To know more about the configuration, see [Configure role masking for an AI agent](https://www.servicenow.com/docs/~mh3OzztIY~y7t3QOhzrnQ "Restrict the roles that an AI agent uses at runtime by creating an Agent Access Role Configuration record that limits the agent to a defined set of roles.").

