Row Filtering and Column Masking for Data Security
Row filtering and column masking enforce identity-aware data security inside tables by limiting visible records and protecting sensitive field values.
In the full article
Read the transcript
Auto-generated captions; wording may contain recognition errors.
Most data governance implementations control access at the table level. A user either has access to a table or they do not. This is sufficient for some use cases and completely inadequate for others. A customer table might contain millions of records where some users should see all of them. Others should see only records relevant to their region and others should see the same records with sensitive fields replaced with masked values. Table level access control cannot express any of these distinctions. Row filtering and column masking are the mechanisms that bring access control inside the table. Row filtering applies a predicate to every query against a table, automatically restricting which rows a given user can see based on their identity or attributes. The filter is invisible to the querying user. They write a normal query and receive only the rows they are authorized to access. A sales representative querying a customer table automatically receives only customers in their assigned territory without needing to include that filter explicitly. Column masking applies a transformation to sensitive fields before they are returned. A user without clearance to see a full account number receives a masked representation. A user with full authorization receives the actual value. The underlying data is unchanged. Only what is returned changes based on who is asking. Both mechanisms operate at query time, enforced consistently regardless of which tool or application accesses the data. A user who bypasses the reporting layer and queries the table directly encounters the same filters and masks. For AI systems, these controls are particularly critical. Agents querying data on behalf of users should see only what those users are authorized to see, regardless of the breadth of the agents own system level access.


