Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

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

AttributeDescription
Configuration nameidentity.agent.role_masking.enabled
Configuration typeSystem Properties \(/sys\_properties\_list.do\)
Data typeBoolean
Recommended valuetrue
Default valuetrue
Fallback valuefalse
CategoryAccess control
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 ImpactIf misconfigured, restrictive role masking may block intended access to a resource.
Dependencies and prerequisitesNone

Parent Topic:Access control