superset 权限管理(二)

配置免登陆权限,允许superset中的charts通过iframe引入到其他第三方系统中, 具体配置如下:

1、修改config.py文件中的属性, 该属性默认为Flase

 PUBLIC_ROLE_LIKE_GAMMA = True

 修改完此项配置后需要重启superset服务器

2、编辑Public角色, 为该角色增加权限

     1) 允许用户导入展开图表

     2)允许用户请求图表的json数据

     3)允许用户方位所有数据源 

   具体增加的权限如下:

      can explore on Superset

      can explore json on Superset

      all database access on all_database_access

保存后,权限即可生效

猜你喜欢

转载自muruiheng.iteye.com/blog/2412846