What Row-Level Security does — and what it does not protect
Row-Level Security (RLS), also known as row-based access control, restricts the visible data based on the permissions of an individual or group. A query returns only the rows permitted under the applicable rules. This allows multiple user groups to use the same data model without being allowed to see every record it contains. RLS can be enforced in the BI data model or in the underlying database. What matters is that the relevant access route is actually covered by this protection layer.
RLS is more than a restriction on how a report is displayed: a hidden chart or a preset report filter does not, on its own, constitute access control. Effectively enforced RLS limits the data that a query can process within its scope. Metrics such as total revenue therefore generally relate to the subset of data the user can access. However, pre-calculated totals are not automatically recalculated for that subset; they require modelling that aligns with the permissions framework.
Protection stops at the row boundary: if a person is allowed to see a record, RLS does not automatically hide individual fields within it, such as salary or contact details. This requires additional column-level or object-level permissions, or appropriately reduced data models. Permission to open a report, controls on modifying data and encryption are also separate protection tasks. RLS is therefore one component of a permissions framework, not a complete security framework.
- Row-level protection: which records can a person query within the protected data model?
- Column-level protection: which fields must remain inaccessible even within records the person is otherwise allowed to see?
- Object access: who is allowed to open and use a report or data model in the first place?
- Scope: which query routes does the RLS protection layer actually cover?
Static and dynamic access rules explained
Static Row-Level Security stores a fixed filter in a role, such as “Region = North”. Individuals or groups are assigned to this role and see the rows that match the defined condition. This is easy to understand when there are only a few stable areas of responsibility. If responsibilities change or further areas are added, role assignments and, where necessary, filters must be updated. Static does not mean that each person needs a separate role: multiple people can use the same role.
Dynamic Row-Level Security determines the permitted data scope from the identity of the signed-in user. A mapping table often links a unique user identifier to permitted regions or organisational units. The filter rule matches the current identity against this table and uses it to restrict the visible rows. Changes in responsibility can then usually be reflected in the mapping data without changing the filter logic. This requires the BI application to provide a reliable identity and the relationships in the data model to propagate the filter correctly.
The choice depends primarily on the variety of permissions and how often they change. A few permanently separate user groups tend to favour static rules; many individual or changing responsibilities tend to favour dynamic rules. However, dynamic does not automatically mean more secure or fully automated: the mapping table also needs a designated owner and a controlled update process. If no valid mapping exists, the rule should grant no data access rather than fall back to unrestricted default access.
- Static: fixed filter conditions for each role; changes require updates to roles or memberships.
- Dynamic: shared filter logic uses the signed-in user's identity and stored permission mappings.
- Identity: use unique, system-provided identifiers for matching rather than names that can be entered freely.
- Selection: assess the number of areas of responsibility, the frequency of changes and the effort required to maintain mappings together.
Practical example: granting access to sales data by region
A sales team should only see revenue for the regions each member manages. To support this, the sales table contains a unique region ID alongside the order number, date and revenue. A separate mapping table links the user identifier verified by the BI system to the permitted region IDs. Anyone responsible for North and West receives two entries. Sales management is explicitly assigned all the regions it needs; a missing mapping, by contrast, grants no data access.
When a query runs, the access rule first determines the region IDs permitted for the signed-in user. It then restricts the sales table through a suitable model relationship or an appropriate filter condition. It is essential that the security filter actually reaches the revenue rows; a relationship alone does not guarantee this. Region names are used only for display, while stable IDs underpin the mappings. Orders without a valid region ID remain inaccessible until their mapping has been resolved.
A small, easily understood test dataset containing orders from North, South and West is suitable for business acceptance testing. An account authorised for North must see only North orders and their total revenue. An account for North and West must see both regions, while an account without a mapping must see no sales data. Check both the detail table and revenue metrics: if a metric uses a separate aggregation table, that table must also be effectively secured by region.
- Prepare the sales table: every revenue row to be made accessible needs a valid, unambiguous region mapping.
- Maintain the access table: store a unique entry for each user identifier and permitted region.
- Check the filter path: the user mapping must restrict the sales table and, where applicable, separate aggregation tables.
- Record expected results: establish in advance which orders and revenue totals should be visible for a single region, multiple region assignments and no access authorisation.
Checklist: systematically test permissions before release
Before release, check not only whether authorised people can see their data, but also whether unauthorised access is actually prevented. Create a test matrix covering identity, group membership, expected data scope and access route. Use a controlled test dataset with records that can be clearly attributed. This makes it possible to determine, for each test case, which rows must be visible and which must never appear.
Where possible, carry out the checks using representative test accounts in the intended usage context. A role preview alone does not prove that sign-in, group resolution and data access work correctly together. Compare visible records, totals and metrics against predefined expected results. Record discrepancies and retests; release should take place only once all security-relevant test cases have passed.
- Check positive and negative cases: permitted records must be visible; deliberately selected unauthorised records must not be accessible either directly or through detail views.
- Test missing or invalid mappings: accounts without appropriate authorisation must not receive unintended data access.
- Check multiple memberships: define the permitted data scope in advance for accounts belonging to several groups and compare the actual result against it.
- Test interactive views: filters, drilldowns, search fields and linked report pages must not expose unauthorised data values or metrics calculated from them.
- Check session changes: after signing out and signing in with another test account, no data from the previous account should remain visible.
Common pitfalls with roles, exports and administrative permissions
Multiple role assignments can unintentionally expand the visible data scope. Some BI systems combine the access granted by all assigned roles rather than applying the strictest rule. An additional group membership can therefore open up access to further regions. Inherited permissions from workspaces or directory groups also matter. What counts is the combined effect of the permissions actually in force, not just the role intended for a particular report.
For exports, a distinction must be made between access control when data is retrieved and protection of the resulting file. An export may correctly respect Row-Level Security, but the downloaded file is no longer subject to the BI application's dynamic access rules. It can be shared and remains available even after a role has been revoked. Whether raw data exports, spreadsheet connections or scheduled deliveries apply the same restrictions as the report view depends on the product, the access route and the identity used.
Depending on the BI system, administrative, editing or model management permissions may bypass Row-Level Security or allow changes to its rules. A restricted report view therefore does not automatically mean that the same person is also restricted when accessing the data model directly. Shared service accounts with extensive permissions are particularly critical: if queries run under their identity, user-specific rules may not work as intended. Privileged access should therefore be assigned separately from ordinary user accounts.
- Do not combine broad default roles with restricted business roles without first establishing the effect of multiple role assignments.
- Restrict export permissions and recipient lists for automated deliveries separately; revoking permissions later does not recall existing files.
- Grant editing, model management and administrative permissions only where the task requires them; simply using reports does not justify these rights.
- For service accounts and embedded reports, establish which identity executes the data query and which permissions apply.
Document access rules and retest them after changes
Access rules should be documented so that business owners and BI administrators can understand their intended effect. For each rule, record the business purpose, the data covered, the authoritative identity source and the responsible approving body. The documentation should also include the source of permission mappings and responsibility for maintaining them. Describe not only the technical filter but also why a particular group of people should receive access. Version rule definitions and mappings so that the approved configuration can be reconstructed later.
Retesting is required whenever changes could affect how an access rule works. Examples include new relationships in the data model, changed region keys, a change of identity source or organisational restructuring. Link such changes to a mandatory approval process: the responsible business function confirms the intended scope of access, while technical testing verifies its implementation. Even without technical changes, permission mappings should be reviewed at intervals determined by risk to confirm that they are still needed.
Retain test results alongside the relevant version of the configuration. A traceable record identifies the reason for the check, the expected effect, the result, the tester and the approval decision without unnecessarily including personal data from the tests. Also define how incorrect changes are rolled back and who makes that decision. This keeps access controls auditable even as staff change and the BI solution evolves.
- For each rule, record its business purpose, the data covered, the identity source and the people responsible for maintenance and approval.
- Make changes to the data model, mappings or organisation explicit triggers for retesting within the change management process.
- Clearly link the rule version, test result and approval decision, and store them with access controls.
- Define the review frequency and revocation procedure; remove permissions that are no longer needed in a controlled manner.