question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot enable anonymous users to view dashboards

See original GitHub issue

I have a dashboard that I want to share publicly. I followed the related steps from the documentation, also linked in https://github.com/apache/incubator-superset/issues/4102: https://superset.incubator.apache.org/security.html#public

Specifically, what I did was:

  1. Set PUBLIC_ROLE_LIKE_GAMMA = True in superset_config.py
  2. Added datasource access permissions to the Public role, for the datasource from where data in the dashboard is retrieved

Expected results

Anonymous (i.e., not logged in) users shall be able to see the dashboard by opening its URL in a web browser.

Actual results

Anonymous (i.e., not logged in) users are not able to see the dashboard by opening its URL in a web browser: they are redirected to the login page showing an Access Denied error.

I also tried to add some more permissions to the Public user (see screenshots) and managed to display the dashboard, but not the charts in it. However I don’t think it’s the right way to do it, it should work as documented.

Screenshots

Access denied error: image

Permissions that I tried to add to Public, together with the datasource access: image

What I saw after adding such permissions: Screenshot 2019-06-24 at 11 21 06 1

Environment

  • superset version: built from master

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
LeonanCarvalhocommented, Aug 22, 2019

I’m using this config-set for Public access

[can dashboard on Superset, can explorev2 on Superset, can explore json on Superset, can csrf token on Superset, can csv on Superset, menu access on Dashboards, all datasource access on all_datasource_access, all database access on all_database_access, can list on DashboardModelViewAsync, can list on DashboardModelView]

You just need to replace all_database_access and all_datasource_access for the public datasource and database.

3reactions
trepmagcommented, Apr 17, 2020

I followed the instruction in the link mentioned above (https://superset.apache.org/security.html#public) and now the public role is filled with the same permission as the Gamma one plus all the datasource. But still, the system return “Access is Denied”!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Anonymous users able to see shared filters, dashboards, or ...
Whether the user is logged in or not in Jira applications they are able to see some shared filters and/or dashboards and/or project...
Read more >
Anonymous Kibana Users - Elastic Discuss
I am attempting to add anonymous users to view my Kibana dashboards but it is ... Just to confirm, you followed Enabling anonymous...
Read more >
Anonymous dashboard viewing - Grafana Community
Hello, Can I change the Home Dashboard for anonymous users? Because I can't star the dashboard and change the preferences setting without login....
Read more >
Step 1: Set up permissions - Amazon ... - AWS Documentation
Each user who accesses a dashboard assumes a role that gives them Amazon QuickSight access and permissions to the dashboard. To make this...
Read more >
Enable Anonymous View of a Dashboard - Cherwell Help
Open a Dashboard in the Dashboard Editor. · Select Dashboard Properties. · Select the Allow view access for anonymous users check box. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found