Is it possible to set permission on a specific dashboard? Like only 'user1' and 'user2' will view/see 'dashboard1' and others will not see 'dashboard1'.
As of Spring/Summer of 2021, there is a feature flag, DASHBOARD_RBAC
, to manage which roles can access the dashboard. See this GitHub issue for more details.
Non-owner user access can be managed two different ways:
Dataset permissions
- if you add to the relevant role permissions to datasets it automatically grants implicit access to all dashboards that uses those permitted datasetsDashboard roles
- if you enableDASHBOARD_RBAC
feature flag insuperset_config.py
then you be able to manage which roles can access the dashboardHaving dashboard access implicitly grants read access to the associated datasets, therefore all charts will load their data even if feature flag is turned on and no roles assigned to roles the access will fallback to
Dataset permissions
.
superset_config.py
: superset.apache.org/docs/installation/configuring-superset/… –
Estate Yes,
Setup role (rules) : my trick is copy gamma rules, rename,
edit permission, just type your dashboard name, youll find : datasource:your dashboard name, add that, that's it.
Setup user, give rules (number 1)
Your new user will able to see the specific dashboard you point (number 2)
View Access
To control who sees a dashboard, define an access role for the datasource associated with the dashboard content.
For example:
- create
role_1
with permissionsdatasource access on [my_db].[dash1_data]
. - Assign
user1
torole_1
andgamma
(standard user profile).
dashboard1
is now presented to user1
assuming it's based on dash1_data.
Write Access
To control which non-admin users can edit dashboards set the Dashboard Owner.
Dashboard List > Edit [dashboard1] > Access Owners
Add individual users to the owner list to provide write access to individual dashboards.
Steps to Give dashboard permission to the particular user.
Step - 2: Click the + button on your right
Step - 3: Give the Unique name in name field for identification for example demo_dashboard_reader and choose the data source in permissions field. then click save.
Step - 4: Go to security and click list users (see the image in step-1). Filter the user you want to give permission of this dashboard and click edit. choose the role that you created in step-3 (demo_dahboard_reader) in my case and click save. Now only the chosen user can able to view the particular dashboard.
Step - 5: Repeat the step-4 to give permission to other users.
Edit the dashboard and you will find the Owners sections, add the user names for whom you want to give the access. Now login with the user and you will able to see the dashboard.
© 2022 - 2024 — McMap. All rights reserved.
DASHBOARD_RBAC
? – Cockcroft