Techment — Site Header

What is Row-Level Security

Definition

Row-level security (RLS) is a control that restricts which rows of a table a given user can see or modify based on their identity or attributes, so different users querying the same table receive only the records they are authorised to access.
« Back to Glossary Index
  • Lets many users share one table while each sees only their permitted rows
  • Enforces data isolation in multi-tenant and regional-restriction scenarios
  • Applies access rules centrally at the data layer rather than in every application
  • Reduces duplication by avoiding separate filtered copies per user group

Real World Example

A SaaS analytics product applies row-level security so each customer querying the shared events table sees only their own tenant's rows, enforced in the database rather than trusting every client application to filter correctly.

FAQs

How does row-level security work?

Policies attached to a table filter rows automatically based on the querying user's identity or attributes, so each user sees only permitted rows.

When is row-level security useful?

In multi-tenant systems, regional data restrictions, or any case where users share a table but must see different subsets of rows.

How does it differ from column-level security?

Row-level security controls which records a user sees, while column-level security controls which fields within a record are visible.

Hello popup window