You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:08:49 UTC
Re: [D] How to define row-level permissions (RLS) based on the chart dimension? [superset]
GitHub user dosubot[bot] edited a comment on the discussion: How to define row-level permissions (RLS) based on the chart dimension?
<!-- Greeting -->
Hi @hpugs! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
Superset enforces row-level security (RLS) at the dataset (table) level, not at the chart or dimension level. This means any RLS filter you define will apply to all charts using that dataset, regardless of the chart's dimensions or configuration. There is no built-in way to set different RLS rules for different charts on the same dashboard if they use the same dataset—RLS is always tied to the dataset and user roles, not to individual charts or chart dimensions [source](https://github.com/apache/superset/discussions/32338).
If you need different data scopes for different charts, the main workarounds are: create separate datasets with distinct RLS rules for each chart, use dynamic user attributes in your dataset SQL (with Jinja macros) for user-specific filtering, or implement custom frontend logic to hide charts based on access errors. These approaches have trade-offs and are not robust or officially supported [source](https://github.com/apache/superset/issues/33698).
There is an active proposal (SIP-126) to add explicit viewer permissions for dashboards and charts, which could allow more granular access control in the future, but this feature is not yet available [source](https://github.com/apache/superset/issues/33698).
If you need strict per-chart visibility, the only current option is custom frontend logic to hide or remove charts when access is denied, but this is not a built-in solution.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=031dbf46-109d-42fd-bf9c-e400d431263d) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/36701#discussioncomment-15276147
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org