Skip to content
Discussion options

You must be logged in to vote

Hi @iir0221! I'm Dosu and I’m helping the superset team.

This is expected behavior in Superset 6.0: when a dashboard is viewed in embedded mode (using a guest token), the backend intentionally strips the SQL query from the API response for security reasons, even if the role has all the necessary permissions. This is done to prevent exposing potentially sensitive SQL in embedded contexts. Anonymous login (not using a guest token) is not treated as an embedded/guest user, so the SQL is shown if permissions allow it. There is no configuration or permission that will allow embedded dashboards to display the SQL in "View query"—this restriction is enforced by the backend regardless of role pe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iir0221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant