The RLS step of a table popup is where a table gets its row level security: the Protection switch, the Rules and SQL views, and the Auto and Manual editing modes. Use it when different permission groups should see different rows of the same table.
The step appears on Warehouse View, Dictionary, Static, Dimension and Fact tables and on Lake staging tables. This page covers the step's switches and modes; the rules themselves are covered in Build RLS access rules, and Row level security editor walks the whole step through. For what row level security does and who may change it, see Warehouse permissions and row-level security; on Lake, the step sits in the popup described in Configure a table.
The Protection group holds the switch that turns row level security on for the table. Its hint reads Row Level Security and "When On, each permission group only sees rows matching its rules. When Off, every group can access all rows."
The step shows one of two views: Rules holds the rule blocks that filter rows per permission group, and SQL shows the script they produce.
The Editor group decides how the script is written. Its hint reads Editing mode and "Auto keeps SQL in sync with your rules. Manual lets you write SQL by hand - switching back to Auto discards manual edits."
The rules area and New Query need Protection On, the Editor in Auto and no RLS change being applied.
The editor expands into its own window over the popup. Closing it while it holds unsaved changes asks first: Discard unsaved changes?, with "You have unsaved RLS changes. Close without saving?" and a warning-styled Discard button.
Warehouse View, Dictionary, Static, Dimension and Fact tables, and Lake staging tables. The step appears in each table's popup; on Lake, it sits in the popup described in Configure a table.
Yes. It applies straight away, not with the popup's step save, and it is blocked while the change is being applied. Wait for it to finish before changing it again.
Protection decides whether row level security applies at all: Off lets every group access all rows. The Editor decides only how the script is written: Auto keeps it in step with your rules, and Manual lets you write the SQL by hand.
Manual editing started. The step moves to the SQL view when you edit the script by hand, and it returns to Rules when manual editing ends.
Picking Manual copies the generated script into the manual script, so you begin from what your rules produced. Switching back to Auto discards your manual edits, and the script follows your rules again.
Because it cannot take edits right now: the rules area and New Query need Protection On, the editor in Auto and no RLS change being applied. Fix the setting or wait for the change to finish, and it accepts clicks again.
An AND group with no conditions. See Build RLS access rules for adding its conditions and groups.
If the editor holds unsaved changes, closing it asks first: Discard unsaved changes?, with "You have unsaved RLS changes. Close without saving?". Discard closes it and drops those changes; the step keeps its last saved state. Save before you close if you need them.