QuestionQ126

VerifiedEnsuring Data Security and Compliance

A security team needs to enforce data protection for a customer table that contains customer PII data. To meet local policies, sales team members must see only customers in their own region, while non-admin users must have email addresses masked.

Which implementation approach should be used with Unity Catalog row filters and column masks?

Explanation

Unity Catalog row filters use SQL UDFs to restrict rows at query time, so a UDF can enforce each user's permitted region. Column masks also use SQL UDFs and can return either the original email address or a masked value based on group membership. A table-level row filter is applied with ALTER TABLE ... SET ROW FILTER, and a column mask is applied with ALTER TABLE ... ALTER COLUMN ... SET MASK; these controls can be used together on the same table.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!