--- title: Configure role masking for an AI agent description: 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. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/identity/configure-role-masking.html release: australia product: Identity classification: identity topic_type: task last_updated: "2026-10-09" reading_time_minutes: 1 keywords: [role masking, AI agents, Agent Access Role Configuration, Agent Access Permission Set Configuration, Limit To Roles, Allow all session roles] breadcrumb: [Role masking for AI agents, Identity] --- # Configure role masking for an AI agent 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. ## Before you begin Role required: `sn_aia.admin` Before you configure role masking for an AI agent, verify the AI agent you want to restrict already exists. ## Procedure 1. Navigate to the **sys\_agent\_access\_configuration\_list.do** table. The Agent Access Role Configurations page opens. 2. Select **New**. The **Agent Access Role Configuration - New Record** form opens. 3. On the form, fill the fields:
| Field | Description |
|---|---|
| Name | Specify a name that for the configuration. Example: `Action Designer role mask`. |
| Application | Scope of the application. |
| Description | Specify a description for the configuration. |
| Agent Table | Select the table that holds the agent record you want to restrict. |
| Action | Select **Limit To Roles**. This action restricts the AI agent to the roles you add to the configuration. The agent can't use roles outside the selected roles. |
| Agent | Look up and select the specific AI agent the configuration applies to. |
| Role List | Add the roles to limit using the **Agent access roles** list. Each role added through this lookup is stored as an individual record in the Configuration table.**Note:** - Previously you could use role list to add the roles. Now, you have to use the Agent access role table to add roles. - 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. |
| Agent access role | Select the role using the **Insert a new row..**. Each row you add creates one record in the Agent access roles table, linking the AI agent to that role. |