Govern
Row-level security
Let everyone open the same report and see only the rows they are allowed to see.
What it does
Row-level security (RLS) filters the rows of a dataset according to who is looking. A regional manager and a country manager can open the same report: each sees their own numbers.
The rule is applied to the dataset, so it holds for every visual and report built on it.
Create a rule
Open Console and choose Row Level Security.
Create a rule and name it.
Choose the datasets it applies to.
Choose the roles it applies to.
Write the condition, as you would in a SQL
WHEREclause.Save. The rule starts switched on.
Example
A workspace has a South region role and an Orders dataset with a region column.
| Setting | Value |
|---|---|
| Datasets | Orders |
| Roles | South region |
| Condition | region = 'South' |
People with the South region role now see only rows where the region is South, in every report that uses Orders.
Switch a rule off
Each rule has an on/off switch, so you can pause a rule while you investigate a problem, without deleting it.
Embedded reports
An embedded report has no signed-in Vizset user, so the embed token carries the rule instead. Each token can have its own condition and the datasets it applies to. See Embed reports and visuals.
Important
After you add or change a rule, sign in as a user with that role, or ask one to check, and confirm they see what you expect.