RLS in Table reports
Understanding Row Level Security (RLS)
Section titled βUnderstanding Row Level Security (RLS)βRLS is a powerful feature that allows you to restrict data visibility in reports based on user roles or attributes. This ensures that users only see the data relevant to them.
Sprinkle supports RLS for Table, SQL, and Model-based reports.
To apply RLS to a table report:
Section titled βTo apply RLS to a table report:β- Create an RLS Attribute: Define an RLS attribute on the RLS page, mapping users to specific values. Refer to the detailed RLS documentation for more information.
- Open the Report: Access the table report where you want to apply RLS.
- Navigate to RLS modal: Navigate to the reportβs βMore optionsβ menu and select βRow Level Security.β
- Map RLS Attribute: In the RLS modal, choose the created RLS attribute and the corresponding column in your data from their respective dropdowns.
- Apply RLS: Click the βLinkβ button to apply the RLS to the selected column.
Example:
Section titled βExample:β- If you want to restrict sales data visibility to managers of respective countries, create an RLS attribute mapping managers to their countries.
- Then, apply this attribute to the βCountryβ column in your sales report.