Defining Snowflake Masking Policies
The following properties are applicable to a Snowflake Masking Policy object.
Tab |
Property |
Description |
Additional Information |
---|---|---|---|
Name | Specifies the unique name of the masking policy within the selected schema |
|
|
Schema | Specifies the schema under which the masking policy is created |
|
|
Use Replace Syntax | Indicates whether the CREATE OR REPLACE syntax should be used during DDL generation |
|
|
If Not Exists | Specifies that if the masking policy already exists, no error is thrown, and no action happens |
|
|
Generate | Indicates whether the masking policy should be included in the DDL generation process |
|
|
General | Return Data Type | Specifies the data type that the masking policy returns |
|
Returns Body | Specifies the SQL expression or logic that defines the masking behavior |
This expression determines how data is masked based on user roles. |
|
Exempt Other Policies | Determines whether this policy exempts the column from other masking policies |
|
|
Arguments |
Name |
Indicates the name of the argument used in the policy |
This argument can be used in the Returns Body expression. |
|
Physical Data Type |
Specifies the data type of the argument |
This must match the type of the column to which the policy is applied. |
Copyright © 2025 Quest Software, Inc. |