Row-level security: show each viewer only their rows
Row-level security (RLS) filters a published dashboard per viewer. You pick one column, assign each viewer one or more values from it, and each signed-in viewer sees only the rows that match their values. Set it up in the dashboard's Share panel under Advanced: row-level security, viewer Q&A. It needs the Pro plan and Sign-in required access.
Before you start
- Plan. On plans other than Pro, the toggle shows a premium icon and "Row-Level Security isn't included in your plan. Upgrade to give each viewer their own slice of the data."
- Access. With any access other than Sign-in required, the panel reads "RLS requires authenticated sharing mode". See Publish and share a dashboard.
- Viewers. Invite the people who will view the board, so you can assign them values.
Turn on row-level security
- In the Share panel, open Advanced: row-level security, viewer Q&A. When RLS is on, this row reads Row-level security on.
- Turn on Row-level security ("Each viewer sees only the rows matching their assigned value").
- In Filter column, choose the column to filter on ("Select a column…"). Each option shows how many values it has. Until you pick one, the panel reads "Row-level security is not active yet" and asks you to choose a filter column to turn it on.
- Check the column's Distinct values. A coverage line shows how many viewers are scoped, have all-access, or are unassigned, for example 5 scoped · 1 all-access · 3 unassigned.
The column must exist in every View the dashboard reads. If it doesn't, you see: 'Column "Region" not found in: Q3 orders. RLS requires the filter column to exist in all source Views.'
Assign values to each viewer
- In Viewers, click Manage. Each viewer row has a values chip that reads Not assigned or lists their values.
- Click the chip to open Assign values. The panel shows the filter column ("Filter: Region", for example).
- Use Search values… and tick the values this viewer may see. Or choose Grant access to all values ("This viewer will see the complete dataset").
- Click Save.
You must pick at least one value: with nothing chosen, the panel warns "Select at least one value before sharing". Remove rule keeps the viewer's access, but they see no rows ("Keeps access, sees no rows").
Example: one region per manager
To give each regional manager their own region:
- Set Filter column to Region.
- Assign "North" to the North manager and "South" to the South manager.
- Give the head of sales Grant access to all values.
What unassigned viewers see
A viewer with no values sees no data: the panel warns, for example, "3 viewers have no assigned values (will see no data)", and on the board that viewer sees "No data available for your account."
Signed-in viewers see a note in their account menu: "You see only the rows shared with you. Other people may see different numbers." Two viewers can see different totals on the same board; that's expected.
Preview the dashboard as a viewer
When RLS is on, a band above the editor canvas reads "Row-level security · filtering on Region".
- Click Viewing as. A menu opens with All data (creator view) and each value of the column.
- Pick a value to see the board as a viewer with that value. The band then reads, for example, "Previewing as West · 1,240 of 5,000 rows visible".
- Click Switch viewer to pick another value.
Where else row-level security applies
| Feature | How RLS applies |
|---|---|
| Chart actions (drill down, See the rows) | Both respect each viewer's rows. See What viewers see |
| Email updates | Each person gets only their own numbers ("Each person gets the numbers they're allowed to see.") |
| Embeds | The Advanced embed option (a token per viewer) can carry row-level security. See Embedding |
| Explore page | Hidden from readers while RLS is on ("Readers don't see the Explore page while it's on") |
Turn row-level security off
Turn off the Row-level security toggle. Mammoth confirms: "Disabling RLS will remove data filtering for all viewers. Assignments will be preserved and restored if you re-enable. Continue?"
Changing Access away from Sign-in required also turns RLS off, after the confirm "Switching away from authenticated sharing will disable Row-Level Security. Continue?"
Troubleshooting
| Symptom or message | Cause | Fix |
|---|---|---|
| 'Column "Region" not found in: Q3 orders…' | A source View lacks the filter column | Add the column to that View, or pick a column every View has |
| A viewer sees "No data available for your account." | They have no assigned values, or Remove rule was used | Assign them at least one value |
Related
- Publish and share a dashboard: access options and inviting viewers.
- What viewers see: the board from a viewer's side, including the RLS note.
- Email updates: per-viewer numbers in update emails.
- Explore and Q&A pages: what readers lose while RLS is on.
- Billing and plans: which plan you're on.
Something wrong? support@mammoth.io