---
title: "superset 权限管理（二）"
author: "muruiheng"
date: "2018-03-13T12:36:54Z"
tags: []
categories: ["开源软件"]
slug: "superset"
draft: false
lastmod: "2018-03-13T12:36:54Z"
id: 2412846
url: "https://muruiheng.iteye.com/blog/2412846"
---

配置免登陆权限，允许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

保存后，权限即可生效