GitHub user dosubot[bot] added a comment to the discussion: In Superset’s native UI, the Drill By option appears for charts, but when the same dashboard is embedded into a React application using the Superset Embedded SDK, the Drill By option is missing, even though hasDrillBy is set to true in dashboardUiConfig.
<!-- Greeting --> Hi @prsandeep! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The Drill By feature is now officially supported in embedded dashboards as of Superset 4.1.1+ ([PR #34319](https://github.com/apache/superset/pull/34319)). However, its visibility in embedded mode does not depend on the `dashboardUiConfig.hasDrillBy` flag alone. Instead, the guest token's role must have the required permissions: specifically, `can_drill` (on Dashboard), `can_write` (on ExploreFormDataRestApi), and `can_samples` (on Datasource). If these permissions are missing, Drill By will not appear, even if it does in the native UI. Make sure your Superset backend is version 4.1.1 or later, and that the guest/embedded role used for the token has all the necessary permissions. Also, note that Drill By only appears for supported chart types and when the chart data structure allows it (i.e., grouped by dimension value) [reference](https://github.com/apache/superset/issues/25630). If you’ve confirmed the above and still don’t see Drill By, check for version mismatches between your Embedded SDK and Superset backend, and ensure your chart type supports Drill By. Let me know if you need details on how to set these permissions. <!-- 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/776c9001-f71b-4aeb-a535-030b562765c7?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/776c9001-f71b-4aeb-a535-030b562765c7?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/776c9001-f71b-4aeb-a535-030b562765c7?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/776c9001-f71b-4aeb-a535-030b562765c7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/776c9001-f71b-4aeb-a535-030b562765c7?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/776c9001-f71b-4aeb-a535-030b562765c7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/776c9001-f71b-4aeb-a535-030b562765c7?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34631) GitHub link: https://github.com/apache/superset/discussions/34631#discussioncomment-14068118 ---- 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]
