News

Snowflake previews data governance policy inheritance for Cortex Search

When a service enables policy inheritance, two SQL functions in Snowflake’s Cortex Search use the caller’s roles to filter rows and mask restricted values.

D
Nov 26, 2026 · 1 min read

Snowflake opened a public preview of data governance policy inheritance for Cortex Search to all accounts. When a search service enables inheritance, Snowflake says only CORTEX_SEARCH_BATCH and CORTEX_SEARCH_RETRIEVE apply the underlying table’s row access and masking policies using the caller’s session roles.

Row access policies exclude matches the caller lacks permission to see, and masking policies control which values the caller can see in the remaining rows. In Snowflake’s example using CORTEX_SEARCH_RETRIEVE, a caller whose session includes neither the service owner role nor the sample ADMIN role sees only matching PUBLIC rows, with the author value masked. A session with ADMIN sees all matching rows and their unmasked author values.

The INHERIT_DATA_GOVERNANCE_POLICIES setting is off by default. Enabling it requires a declared primary key, which the service uses to look up candidate matches in the base table under the caller’s session roles. Snowflake says the service owner’s role still controls which rows are eligible for indexing when the service builds or refreshes the index. A caller cannot retrieve a row excluded from the index by that role’s permissions, even if they can see it in the base table.

Snowflake says searches can return fewer matches after row access policies filter the results. A search can also lose a hit on a text search column if the value the masking policy returns for the caller differs from the indexed value. The service rejects queries that filter on an attribute masked for the caller. An attribute outside the filter can still appear with its value masked.

The Retrieve Cortex Search SQL function became generally available in a separate release.

More news