Issue with Public Role Permissions for Sharing Dashboards and Generating Screenshots in Superset #30433
Replies: 4 comments 8 replies
-
To allow the Public role in Superset to generate screenshots via code without losing the ability to access dashboards without logging in, you should set the PUBLIC_ROLE_LIKE = "Gamma" Additionally, you need to explicitly grant access to the specific datasets required for generating screenshots by editing the Public role and adding the public data sources manually. Here are the steps to manually add public data sources to the Public role:
This process allows you to explicitly grant access to specific datasets for the Public role [1]. Be aware that there are some limitations and security concerns with setting |
Beta Was this translation helpful? Give feedback.
-
@dosu I just updated my configuration file in my post, what should I change to achieve my goals? |
Beta Was this translation helpful? Give feedback.
-
@dosu I already had this configuration added, but it still doesn’t work. |
Beta Was this translation helpful? Give feedback.
-
@dosu my current permissions for the public role are as follows:
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I’m experiencing an issue with permissions in Superset and haven’t been able to find a solution after trying several configurations. Below, I explain my situation in detail in the hope that someone can guide me or provide some help.
I have two goals:
So far, I’ve been able to achieve the first goal using the Public role. However, when I try to create the screenshot via code, the action does not complete successfully with the permissions assigned to this role. After investigating and testing different configurations, I discovered that if I change the configuration value from
AUTH_ROLE_PUBLIC = 'Public'
toAUTH_ROLE_PUBLIC = 'admin'
, the screenshot works perfectly. However, this breaks the first goal, as it’s no longer possible to access the dashboard via the public link without logging in.I believe the solution might be to add some specific permissions to the Public role, which would allow me to keep the ability to access the dashboard publicly and, at the same time, enable the generation of screenshots via code. However, I haven’t been able to identify which permissions are needed.
I’ve searched for documentation that explains what each permission in Superset does, but I haven’t found anything clear enough to help me understand this.
My question is:
Does anyone know which specific permissions I should add to the Public role to generate screenshots via code without losing the ability to access dashboards without logging in?
I would really appreciate any guidance or help you can provide.
Thanks in advance.
Public Rol permissions
superset_config.py
Beta Was this translation helpful? Give feedback.
All reactions