What is row-level security?
Definition
Row-level security (RLS) restricts which rows a person or application can read from a dataset. Rules use an identity or other authorised context to decide which records are visible. For example, regional managers could use the same report while seeing only records assigned to their region.
The rule can be applied in the database or an analytics service. Its effectiveness depends on how identity reaches the rule and whether every route to the records, including exports or background work, applies the same restriction.
Why it matters
Different people can need access to the same report while being allowed to see different records. For example, regional managers might share one sales dashboard but each see only their own region. Row-level rules can support that arrangement without maintaining a separate report for every person.
The rule must apply consistently wherever the data can be read, including exports, cached results and embedded views. A filter that a viewer can remove is not an access boundary. Review how identities are mapped to records and what happens when no rule matches. Test with contrasting users and deliberately restricted records, so a report that appears correct for one account does not hide an access problem for another.
Source permissions vs row-level security
Source permissions decide whether someone can use a particular data source. Row-level security decides which records they can read within an otherwise permitted dataset.
For example, granting a sales team access to an orders source allows use of that source. A regional rule could additionally restrict each manager to their own region’s orders. Hiding a chart or setting a default filter is not equivalent: the restriction must be applied where access to the records is enforced.
The two controls can work together, but one should not be assumed to provide the other. Check the behaviour of direct queries, published results and exports as well as the main report view.