GitHub user dosubot[bot] added a comment to the discussion: Public permalink

<!-- Greeting -->
Hi @Tranqu1lo! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.

<!-- Answer -->
Public (anonymous) access via dashboard permalink is still fully supported in 
Superset, but your current setup is missing a key configuration: you need to 
set `PUBLIC_ROLE_LIKE = "Public"` (or `"Gamma"`) in your `superset_config.py`. 
Without this, the Public role is empty and anonymous users will always be 
redirected to login, even if you manually assign permissions—these are 
overwritten on init or restart. 

A working configuration for public dashboard access is:
```python
AUTH_ROLE_PUBLIC = "Public"
PUBLIC_ROLE_LIKE = "Public"
FEATURE_FLAGS = {"DASHBOARD_RBAC": True}
```
After adding `PUBLIC_ROLE_LIKE`, run `superset init`, restart the service, make 
sure the dashboard is published, assign the Public role to the dashboard, and 
ensure the Public role has access to all datasets used by the dashboard. This 
will allow anonymous users to access the dashboard via the public permalink 
without being redirected to login [[source 
1]](https://github.com/apache/superset/discussions/37573) [[source 
2]](https://github.com/apache/superset/discussions/34044).

The Embedded/Guest Token approach is an alternative for embedding dashboards 
with more granular control, but it is not required for simple public/anonymous 
access if you configure the Public role as described above [[source 
3]](https://github.com/apache/superset/pull/30032).

If you still see a redirect to /login after these changes, double-check that 
you ran `superset init`, restarted the service, and that the Public role has 
the necessary dataset/database permissions. 

References:  
- [How to enable public/anonymous dashboard 
access](https://github.com/apache/superset/discussions/37573)  
- [Public role and RBAC 
details](https://github.com/apache/superset/discussions/34044)  
- [Embedding and public dashboard 
docs](https://github.com/apache/superset/pull/30032)


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/0f63c016-f3b8-4afb-8621-2002a447df78?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/0f63c016-f3b8-4afb-8621-2002a447df78?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/0f63c016-f3b8-4afb-8621-2002a447df78?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/0f63c016-f3b8-4afb-8621-2002a447df78?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/0f63c016-f3b8-4afb-8621-2002a447df78?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/0f63c016-f3b8-4afb-8621-2002a447df78?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/0f63c016-f3b8-4afb-8621-2002a447df78?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Public%20%28anonymous%29%20access%20via%20dashboard%20permalink%20is%20still%20fully%20supported%20in%20Superset%2C%20but%20your%20current%20setup%20is%20missing%20a%20key%20configuration%3A%20you%20need%20to%20set%20%60PUBLIC_ROLE_LIKE%20%3D%20%22Public%22%60%20%28or%20%60%22Gamma%22%60%29%20in%20your%20%60superset_config.py%60.%20Without%20this%2C%20the%20Public%20role%20is%20empty%20and%20anonymous%20users%20will%20always%20be%20redirected%20to%20login%2C%20even%20if%20you%20manually%20assign%20permissions%E2%80%94these%20are%20overwritten%20on%20init%20or%20restart.%20%0A%0AA%20working%20configuration%20for%20public%20dashboard%20access%20is%3A%0A%60%60%60python%0AAUTH_ROLE_PUBLIC%20%3D%20%22Public%22%0APUBLIC_ROLE_LIKE%20%3D%20%22Public%22%0AFEAT
 
URE_FLAGS%20%3D%20%7B%22DASHBOARD_RBAC%22%3A%20True%7D%0A%60%60%60%0AAfter%20adding%20%60PUBLIC_ROLE_LIKE%60%2C%20run%20%60superset%20init%60%2C%20restart%20the%20service%2C%20make%20sure%20the%20dashboard%20is%20published%2C%20assign%20the%20Public%20role%20to%20the%20dashboard%2C%20and%20ensure%20the%20Public%20role%20has%20access%20to%20all%20datasets%20used%20by%20the%20dashboard.%20This%20will%20allow%20anonymous%20users%20to%20access%20the%20dashboard%20via%20the%20public%20permalink%20without%20being%20redirected%20to%20login%20%5B%5Bsource%201%5D%5D%28https%3A//github.com/apache/superset/discussions/37573%29%20%5B%5Bsource%202%5D%5D%28https%3A//github.com/apache/superset/discussions/34044%29.%0A%0AThe%20Embedded/Guest%20Token%20approach%20is%20an%20alternative%20for%20embedding%20dashboards%20with%20more%20granular%20control%2C%20but%20it%20is%20not%20required%20for%20simple%20public/anonymous%20access%20if%20you%20configure%20the%20Public%20role%20as%20described%20above%20%
 
5B%5Bsource%203%5D%5D%28https%3A//github.com/apache/superset/pull/30032%29.%0A%0AIf%20you%20still%20see%20a%20redirect%20to%20/login%20after%20these%20changes%2C%20double-check%20that%20you%20ran%20%60superset%20init%60%2C%20restarted%20the%20service%2C%20and%20that%20the%20Public%20role%20has%20the%20necessary%20dataset/database%20permissions.%20%0A%0AReferences%3A%20%20%0A-%20%5BHow%20to%20enable%20public/anonymous%20dashboard%20access%5D%28https%3A//github.com/apache/superset/discussions/37573%29%20%20%0A-%20%5BPublic%20role%20and%20RBAC%20details%5D%28https%3A//github.com/apache/superset/discussions/34044%29%20%20%0A-%20%5BEmbedding%20and%20public%20dashboard%20docs%5D%28https%3A//github.com/apache/superset/pull/30032%29)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me
 
%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37641)

GitHub link: 
https://github.com/apache/superset/discussions/37641#discussioncomment-15685884

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to