sql / intermediate
Snippet
Table-Level Read Permission Delegation
Applying the principle of least privilege by granting specific query capabilities to database roles limits exposure and enforces secure access control boundaries.
snippet.sql
sql
1
GRANT SELECT ON public_financial_reports TO analyst_role;
Breakdown
1
GRANT SELECT ON public_financial_reports TO analyst_role;
Grants read-only access on the public_financial_reports table specifically to members assigned the analyst_role.