--- title: Enable Role Masking for Agents description: Use a system property to enable the role masking feature. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-enable-role-masking-for-agents.html release: australia product: Instance Security Hardening Settings classification: instance-security-hardening-settings topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Access control, Hardening settings, Platform Security] --- # Enable Role Masking for Agents Use a system property to enable the role masking feature. Use the **identity.agent.role\_masking.enabled** system property to enable the role masking feature. Role masking limits the roles that an AI agent uses when executing tasks. This configuration helps to prevent unnecessary access to resources not needed within the context of an agent. When this property isn't set to `true`, agents automatically inherit all roles from the user invoking them, potentially increasing the risk of privilege escalation and accidental data exposure. Ensure that the **identity.agent.role\_masking.enabled** system property exists in the System Properties \[sys\_properties\] table and is set to a value of `true`. ## More information
Attribute Description
Configuration name **identity.agent.role\_masking.enabled**
Configuration type System Properties \(/sys\_properties\_list.do\)
Data type Boolean
Recommended value true
Default value true
Fallback value false
Category [Access control](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-access-control.md)
Security risk - Severity score: 5 - CVSS score: Medium - Security risk details: When this property isn’t set to `true`, agents automatically inherit all roles from the user invoking them. It may increase the risk of privilege escalation and accidental data exposure.
Functional Impact If misconfigured, restrictive role masking may block intended access to a resource.
Dependencies and prerequisites None
**Parent Topic:**[Access control](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-access-control.md)