superset icon indicating copy to clipboard operation
superset copied to clipboard

Dashboard access permission

Open amitmiran137 opened this issue 6 years ago • 8 comments

Is your feature request related to a problem? Please describe. I'm missing then ability to permit access in the dashboard level. there is only ability to set owners, but owners have full permissions on the dashboard they own but in my use-case I need to give basic access to specific dashboards only I want for security purposes to block access for non permitted user to access dashboards

feature summary

  • Create permissions for each dashboard with the format "dashboard access on dashboard_title [dashboard_id]"
  • The name of the permission is updated if the dashboard title is changed.
  • Add a dashboard permission to a role via the Edit Role form, or, for convenience, add a role to a dashboard via the Edit Dashboard form.
  • Optionally, add a default role to be added to each new dashboard created from a slice.
  • The permission "all_dashboard_access" is added to Admin, Alpha, and Gamma roles.
  • To allow private dashboards, remove "all_dashboard_access" from a role. This role will then only have access to the dashboards specified. Add a dashboard's permission to a role to "publish" it.
  • Note that these permissions do not apply to slices. To make the data in a dashboard truly private, use dashboard permissions with a read only role that has no slice/explore access.

Describe the solution you'd like Use FAB permission view mechanism to have new permissions named dashboard read/edit access and for every dashboard there would be a matching view_menu instance that can be used a permission_view and be assigned into Roles

Users will be validated with the necessary permissions when requesting dashboards(specific or list) and will be rejected if they don't have them Also will be validated on on dashboard edit access (UI & BE)

amitmiran137 avatar May 28 '20 09:05 amitmiran137

nice

yishaifri avatar May 31 '20 05:05 yishaifri

@mistercrunch @villebro @altef

amitmiran137 avatar May 31 '20 08:05 amitmiran137

I would very much like dashboard level permissions as well; Thanks for writing this up, @amitNielsen!

@justin-barton

altef avatar May 31 '20 19:05 altef

@altef we are using your rls implementation thanks for that!

amitmiran137 avatar May 31 '20 19:05 amitmiran137

there is an old PR #5099 but now it is stale I plan to re-implement just trying to make sure the feature summary that I've listed is the right way to go @mistercrunch @altef @roadie-james @yuezhiling2 @cherrylynn

amitmiran137 avatar Jun 01 '20 07:06 amitmiran137

@amitNielsen This would be a very useful feature indeed ! Thanks for taking a look at it. The feature summary you described is exactly what I would expect from this feature

Clement-Ru avatar Jun 05 '20 11:06 Clement-Ru

great new fature!

rubenSastre avatar Jul 08 '20 11:07 rubenSastre

I've open a sip #10408

amitmiran137 avatar Jul 23 '20 10:07 amitmiran137