---
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


---

# Query ACLs

# Query ACLs {#ariaid-title1}

Release version: Brazil  
Updated October 27, 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 Query ACLs

Query ACLs in ServiceNow provide granular control over who can query data by defining specific access permissions on query operations.
These ACLs restrict unauthorized users from extracting information through queries, even if they cannot see the actual data values.
Query ACLs operate at the record level with operations set toqueryrangeorquerymatch, allowing precise control over which queries are permitted.
Show full answer Show less  

## When to Use Query ACLs

Implement query ACLs whenever columns contain sensitive data or when partial or conditional access to rows and columns is required but not fully enforced by data filters. They are particularly useful in scenarios where users should have access to some data subsets but not others, such as:

* **Payroll control:** Users can view only their own salary row and are prevented from range queries on salary values.
* **HR control:** Users can see all HR profiles but only their own Social Security Number (SSN), preventing extraction of SSNs across profiles.

## Key Features and Behavior

Query ACLs use two main operations to enforce access:

* **querymatch:** Allows safe operators such as EQUALS, NOTEQUALS, IN, NOTIN, SAMEAS, and checks for null or empty values. These operators fetch specific records and cannot be exploited to retrieve unauthorized records. If passed, users can submit match queries; if failed, users cannot perform these queries.
* **queryrange:** Includes operators like STARTSWITH, CONTAINS, \>=, \<=, and others that allow querying across record ranges. Due to their broader scope, these operators are more sensitive. Passing the ACL permits range queries and unrestricted sorting; failing restricts both range queries and sorting by the column.

## Important Considerations

By default, if no query ACL exists, the system defers to a default `star.star` ACL that delegates to read access. However, when query ACLs are defined, they override this default, meaning explicit query ACLs take precedence over standard read permissions for query operations.  
Query ACLs enable more granular access control by defining who can query the data.

## What is a query ACL {#query-acl-rule__section_ctb_1yl_zbc}

A query ACL is a record-type ACL that has its operation set to either
`query_range` or `query_match`. Query ACLs allow for more specific control of user queries, restricting or enabling
access based on their setup. Query ACLs restrict who can query the data, preventing attackers from extracting
information from query results even when they can't see the values.

## When to use a query ACL {#query-acl-rule__section_pn2_yf5_pcc}

Wherever a column contains sensitive values, and allows partial or conditional access to data, a query ACL should be considered and implemented as necessary based on the sensitivity of the
data.
Wherever there is a partial/conditional access to rows and their columns in tables, especially where that access is not enforced by data filters, query ACLs should be implemented as necessary based on the sensitivity of the data.  
Note:  
Consider query ACLs when some users have access to some rows or columns and not others.  

## Payroll query control {#query-acl-rule__example_ngj_rh5_pcc}

A user can see one row in the payroll table for their own salary, but has no reason to issue range queries for users with a salary within two boundaries. A `query_range` ACL on salary would prevent them from issuing that query.  

## HR query control {#query-acl-rule__example_p1g_vh5_pcc}

A user can see all hr_profiles, but can only see their own SSN. Query ACLs prevent users from running queries against the SSN of other hr profiles to extract SSN mappings.

## Query ACL behavior {#query-acl-rule__section_xbm_dg5_pcc}

Query ACLs use `query_match` and `query_range` operations for secure and granular table querying behavior. Their behaviors are described below:

`query_match`

:   `query_match` is composed of: EQUALS, NOT_EQUALS, IN, NOT_IN, SAMEAS, NSAMEAS, ANYTHING, ISEMPTYSTRING, ISEMPTY, ISNOTEMPTY, ISNULL, ISNOTNULL. `query_match` is made of the "safe operators", in a
    sense that they are built to fetch specific record(s), and can't be exploited to return others.

    {#query-acl-rule__table_c3k_1zl_zbc__entry__2}

    | Evaluation outcome | Result |
    |-|-|
    | Pass | User can submit match queries |
    | Fail | Users can't submit match queries: * EQUALS * NOT_EQUALS * IN * NOT_IN * SAMEAS * NSAMEAS * ANYTHING * ISEMPTYSTRING * ISEMPTY * ISNOTEMPTY * ISNULL * ISNOTNULL {#query-acl-rule__ul_un1_335_pcc} |
    [ ]

    {#query-acl-rule__table_c3k_1zl_zbc}

`query_range`

:   `query_range` is composed of all the others (STARTS_WITH, CONTAINS, \>=, \<=, and similar
    operators) which are more dangerous as they allow users to query for more records by adjusting the boundary values.

    {#query-acl-rule__table_jnn_5pl_zbc__entry__2}

    | Evaluation outcome | Result |
    |-|-|
    | Pass | User can submit range queries and sorting is unrestricted |
    | Fail | Users cannot submit range queries with STARTS_WITH, CONTAINS, \>=, \<=, and similar operators. Sorting by column is restricted. |
    [ ]

{#query-acl-rule__table_jnn_5pl_zbc}  
Warning:  
Query ACLs (both query_match and query_range) default to a star.star ACL that delegates to read access. This means, where ACLs are enforced on queries, if no query ACL was created then read access to the column is evaluated ; if
query ACLs are defined then they override the default behavior.

