superset icon indicating copy to clipboard operation
superset copied to clipboard

How can I only authorize users to dashboards?

Open ouyang-lunxi opened this issue 8 years ago • 14 comments

Expected results

I want create a role only the given dashboard can be shown to him, but I can only limit his access on datasource. In another word, I want to create 2 or more different dashboards based on the same datasource, and a specified user can only see one of them. But I can't do that based on the existing security model. Is there any suggestions?

ouyang-lunxi avatar Dec 27 '17 09:12 ouyang-lunxi

Create user and the assign roles . You can start with Gamma , and create additional roles with custom access to data source.

rahulsingh303 avatar Feb 08 '18 19:02 rahulsingh303

I don't think data source access is sufficient. ouyang-lunxi says he has two dashboards based on the same data source, and wants to provide (I presume read-only) access to one of those two dashboards. Duplicate of #1799?

mcdavey17 avatar Feb 16 '18 10:02 mcdavey17

For now security restrictions are on a per-datasource only (also, per schema and per database), allowing users to drill-through and slice/dice the data behind the dashboard.

We do understand the use case where the user may be allowed to see a dashboard, but not to explore the underlying datasources and are planning on supporting this at some point.

mistercrunch avatar Feb 19 '18 00:02 mistercrunch

+1 read-only public dashboard would be nice

LanDeQuHuXi avatar May 11 '18 14:05 LanDeQuHuXi

+1 read-only public dashboard would be nice

mojitodaiquiri avatar May 17 '18 10:05 mojitodaiquiri

@LanDeQuHuXi @mojitodaiquiri i think that functionality is in the works: https://github.com/apache/incubator-superset/pull/4725

teewhyli avatar May 21 '18 01:05 teewhyli

+1 read-only public dashboard would be nice

isunix avatar Jan 30 '19 07:01 isunix

@isunix Can you elaborate on the implementation steps? Thank you

cscainiao avatar Apr 01 '19 08:04 cscainiao

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar May 31 '19 09:05 stale[bot]

Is this feature implemented?

ug911 avatar Jun 09 '19 04:06 ug911

is this feature is implemented? or anyone is working on it?

SonaliSihra avatar Aug 27 '19 06:08 SonaliSihra

Using the reply from @A. kyenze, I had to change some permissions to enable the user to have the following permissions:

  1. Recent Activity
  2. Favorites
  3. Dashboards Lists

So I ended up having the permissions bellow: [can list on DashboardModelViewAsync, can dashboard on Superset, can fave dashboards on Superset, can recent activity on Superset, can favstar on Superset, can explore on Superset, can fave dashboards by username on Superset, can csrf token on Superset, can explore json on Superset]

Also had to add (of course) the datasource access rights: [datasource access on [database_3].(id:3), datasource access on [database_3].table_2]

User Roles Dashboards Recent Activity Favorite

So, because i've a generalViewer, and another role to setup the datasource access, it's really easy to add new daashboards to different users.

SWoto avatar Sep 30 '19 12:09 SWoto

@mistercrunch Is this functionality in roadmap ?

michalmisiewicz avatar Oct 21 '19 18:10 michalmisiewicz

Hello team Is this feature implemented?

Lemmynjash avatar Jan 21 '21 17:01 Lemmynjash