GitHub user dosubot[bot] added a comment to the discussion: Hide a Dashboard 
Tab Until Development Is Complete

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

<!-- Answer -->
Unfortunately, **Superset does not currently have a built-in feature to hide 
individual dashboard tabs** from viewers while keeping them visible to editors. 
[Tab visibility is purely a UI state 
concern](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/gridComponents/Tabs.jsx),
 not tied to user roles or permissions.

**Recommended workaround:** [Split your dashboard into multiple separate 
dashboards](https://github.com/apache/superset/discussions/35533#discussioncomment-14607548)
 (e.g., one for Customer Overview + Loyalty Points, another for Advanced 
Analytics) and use **dashboard-level RBAC** to control access. Once development 
is complete, you can either merge the content or grant users access to the new 
dashboard.

A few notes:
- The `DASHBOARD_RBAC` feature flag enables role-based access control, but [it 
only works at the dashboard level, not individual 
tabs](https://github.com/apache/superset/discussions/35533#discussioncomment-14607548)
- If you're using embedded dashboards, the [Embedded SDK does support a 
`hideTab` 
option](https://github.com/apache/superset/issues/36377#issuecomment-3863869526),
 but this hides tabs for all users rather than conditionally by role
- [Tab-level permissions would require custom development with changes to both 
frontend and 
backend](https://github.com/apache/superset/discussions/35533#discussioncomment-14607548)

This is a [known feature gap that others have 
requested](https://github.com/apache/superset/issues/32060) as well.


<!-- 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/c8c89336-0727-4a4c-93be-a4ce308c7e4b?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/c8c89336-0727-4a4c-93be-a4ce308c7e4b?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/c8c89336-0727-4a4c-93be-a4ce308c7e4b?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/c8c89336-0727-4a4c-93be-a4ce308c7e4b?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/c8c89336-0727-4a4c-93be-a4ce308c7e4b?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/c8c89336-0727-4a4c-93be-a4ce308c7e4b?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/c8c89336-0727-4a4c-93be-a4ce308c7e4b?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=Unfortunately%2C%20%2A%2ASuperset%20does%20not%20currently%20have%20a%20built-in%20feature%20to%20hide%20individual%20dashboard%20tabs%2A%2A%20from%20viewers%20while%20keeping%20them%20visible%20to%20editors.%20%5BTab%20visibility%20is%20purely%20a%20UI%20state%20concern%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/gridComponents/Tabs.jsx%29%2C%20not%20tied%20to%20user%20roles%20or%20permissions.%0A%0A%2A%2ARecommended%20workaround%3A%2A%2A%20%5BSplit%20your%20dashboard%20into%20multiple%20separate%20dashboards%5D%28https%3A//github.com/apache/superset/discussions/35533%23discussioncomment-14607548%29%20%28e.g.%2C%20one%20for%20Customer%20Overview%20%2B%20Loyalty%20P
 
oints%2C%20another%20for%20Advanced%20Analytics%29%20and%20use%20%2A%2Adashboard-level%20RBAC%2A%2A%20to%20control%20access.%20Once%20development%20is%20complete%2C%20you%20can%20either%20merge%20the%20content%20or%20grant%20users%20access%20to%20the%20new%20dashboard.%0A%0AA%20few%20notes%3A%0A-%20The%20%60DASHBOARD_RBAC%60%20feature%20flag%20enables%20role-based%20access%20control%2C%20but%20%5Bit%20only%20works%20at%20the%20dashboard%20level%2C%20not%20individual%20tabs%5D%28https%3A//github.com/apache/superset/discussions/35533%23discussioncomment-14607548%29%0A-%20If%20you%27re%20using%20embedded%20dashboards%2C%20the%20%5BEmbedded%20SDK%20does%20support%20a%20%60hideTab%60%20option%5D%28https%3A//github.com/apache/superset/issues/36377%23issuecomment-3863869526%29%2C%20but%20this%20hides%20tabs%20for%20all%20users%20rather%20than%20conditionally%20by%20role%0A-%20%5BTab-level%20permissions%20would%20require%20custom%20development%20with%20changes%20to%20both%20frontend%20and%2
 
0backend%5D%28https%3A//github.com/apache/superset/discussions/35533%23discussioncomment-14607548%29%0A%0AThis%20is%20a%20%5Bknown%20feature%20gap%20that%20others%20have%20requested%5D%28https%3A//github.com/apache/superset/issues/32060%29%20as%20well.)&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/38499)

GitHub link: 
https://github.com/apache/superset/discussions/38499#discussioncomment-16048415

----
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