Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› Row Access Policy
Governance, Ownership & Risk

Row Access Policy

← Back to Glossary
By NHI Mgmt Group Updated November 24, 2026 Domain: Governance, Ownership & Risk

A Row Access Policy limits which rows a principal can see when querying a dataset. In BigQuery, it is enforced at query time, so the policy applies to every consumer of the data, including analysts, applications, and AI agents that reach the table directly.

What Row Access Policy Does in Data Access Control

A row access policy is a query-time data access control that filters which records a principal can see. It preserves one table or dataset while enforcing different row visibility for different consumers, which is why it is useful for multi-tenant analytics, regulated data, and shared semantic layers.

The key design point is that the policy is evaluated when the query runs, not when the data is stored. That means the same dataset can serve multiple audiences without cloning tables or relying on consumers to apply the correct filter themselves. It also means the policy must be designed around the actual query surface, including direct SQL access, BI tools, applications, and automated consumers.

Why Row Access Policies Matter for Security and Analytics

Row access policies reduce the risk of overexposure by making row filtering part of the data platform, rather than an application-only convention. This matters when a dataset contains tenant data, customer records, internal segmentation, or other information that must be separated by business context instead of by physical database copy.

They are especially important in environments where many tools can reach the same table, because every consumer inherits the same enforcement point. For that reason, row access policy design often sits alongside broader data authorisation patterns such as entitlement tables, policy tags, and role or attribute driven filtering. The practical question is not just whether the policy exists, but whether it reflects the organisation's real access model.

For a deeper treatment of how row filtering fits with masking, entitlement design, and warehouse authorisation, see the Row and Column Level Security Guide.

How Row Access Policies Are Used in Practice

In practice, a row access policy is attached to a table or logical layer and evaluated against the current user, role, session context, or other trusted attributes. The policy logic should be simple enough to reason about, because overly complex predicates become hard to test, hard to audit, and easy to misapply across environments.

Organisations usually need a clear mapping between the policy decision and the source of truth for entitlements. If the policy depends on a lookup table, that table becomes part of the security control and needs change control, ownership, and testing. If the policy depends on application context, the application must pass that context reliably and consistently, or the control can fail open in subtle ways.

Row access policies also need to be aligned with adjacent controls such as column masking and warehouse role design. In many implementations, the security outcome depends less on a single rule and more on the combination of filters, grants, and inherited permissions.

When row filtering and masking need to work together, the distinctions and bypass risks are easier to understand in Dynamic Data Masking vs Row-Level Security.

Common Failure Modes and Testing Considerations

Row access policies fail most often through incomplete mapping, overly broad fallback logic, or inconsistent handling of privileged and automated consumers. A policy that looks correct in one client can still leak data if another query path bypasses the intended predicate, uses a different identity context, or materialises data into a downstream object without the same controls.

Testing therefore matters as much as policy authoring. Teams should validate that the policy applies to every intended query path, that null or unknown context values are handled safely, and that policy changes do not silently widen access. In shared analytics environments, inference risk also matters, because users may learn restricted row values indirectly from aggregates, joins, or export workflows even when the base table is filtered.

Good governance also includes separation of duties. The people who define row access logic should not be able to quietly bypass it through separate elevated access paths, and the policy should be reviewed whenever data ownership, tenancy, or reporting structure changes.

For a governance lens on how access policy design, reviews, and separation of duties fit together, the Access Control Policy Template is a useful companion reference.

How Organisations Operationalise Row Filtering at Scale

At scale, row access policy is less a single database feature and more a data governance pattern. The control needs ownership, change tracking, test coverage, and documented exception handling so that analysts, applications, and automation all receive the same intended view of the data.

Practitioners should treat the policy as part of the platform's access architecture: decide where entitlement data lives, define who can change the policy, and verify that downstream consumers do not recreate unrestricted copies of protected data. In cloud warehouses, that often means pairing row filtering with platform roles, policy administration, and controlled access review processes.

Where the same table is consumed by humans and automation, the most important operational rule is consistency. If one consumer class sees different rows than another, that difference must be deliberate, documented, and continuously tested rather than inferred from application behaviour.

Risk and Threat Considerations

Row access policies can create a false sense of safety if teams assume the filter is universal or if they do not test every execution path that can reach the data. The main exposure is not only direct over-disclosure, but also bypass, inference, and persistence of unrestricted copies in downstream systems.

Failure mechanism: A policy can fail when the entitlement source is wrong, when a consumer reaches the table through an alternate path, or when a privileged role, export job, or copied dataset preserves broader access than intended.

Impact: Sensitive rows can be exposed to users or systems that should only see a subset of the data, which can lead to tenant leakage, regulatory breach, or misuse of protected business records.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-3 — Access EnforcementRow filtering enforces what each principal may read at query time.
AC-6 — Least PrivilegeRow access policies limit data visibility to the minimum necessary rows.
Recommendation — Enforce AC-3 so query-time row filters only return records allowed by policy. Apply AC-6 to restrict each role or context to only the rows it needs.
ISO/IEC 27001:2022A.5.15 — Access controlRow access policy is an access control mechanism for information objects.
A.8.3 — Information access restrictionRow policies restrict dataset visibility by subject and context.
Recommendation — Use A.5.15 to define and review row-level access rules for datasets. Implement A.8.3 so dataset rows are only visible to authorised consumers.
CIS Controls v8CIS-6 — Access Control ManagementRow access policies are a form of controlled data access management.
Recommendation — Use CIS-6 to govern who can query which rows and under what conditions.

Practitioner Guidance

What to watch for: Treat row access policy as a governed control, not a one-time configuration. The most useful operational question is whether the policy still matches the business's current tenancy, reporting, and approval model after every schema, role, or integration change.

Practitioner note: In shared warehouse environments, the strongest row policy is one that is simple enough to test repeatedly and explicit enough that every downstream consumer can be checked against the same rule set.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org