addRowAccessPolicyOnView
Last updated: January 27, 2026
Adds a row access policy to a view in Snowflake. The policy arguments must map to specific view columns to filter row-level access based on the policy expression.
Note: Automatic rollback drops the policy from the view.
Known limitation: This change type does not support database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the catalog (database) containing the view | No |
| String | Name of the schema containing the view | No |
| String | Name of the view to apply the policy to | Yes |
| String | Name of the catalog containing the policy (cross-schema) | No |
| String | Name of the schema containing the policy (cross-schema) | No |
| String | Name of the row access policy to apply | Yes |
| Boolean | Apply policy only if view exists using | No |
| Nested | Wrapper for columns that map to policy arguments | Yes |
column attributes (nested in rowAccessPolicyColumns)
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the view column to map to policy | Yes |