Bug description
I am using endpoint superset_response=$(curl -s -k --url "https://superset.test.com/api/v1/charts/?q=%7B%22columns%22%3A%5B%22id%22%2C%22$name_key%22%5D%2C%22page%22%3A$page%2C%22page_size%22%3A$page_size%7D" \ --header "Authorization: Bearer $ACCESS_TOKEN" \ --header 'accept: application/json') to read the charts from superset. I am getting error as no charts were found. What are the permissions required for fetching these assets
Screenshots/recordings
No response
Superset version
5.0.0
Python version
3.11
Node version
18 or greater
Browser
Chrome
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: dosubot[bot]
To fetch charts via the /api/v1/charts
endpoint in Superset 5.0.0, your role needs the Chart
permission with read access (can_read
, can_list
, or can_show
). You may also need similar read permissions on related resources like Dashboard, SavedQuery, Dataset, Database, and Log, plus can dashboard
and can explore json
on Superset, and datasource access for the datasets behind your charts. If these permissions are missing, the API can return an empty result set or a 403 error instead of listing charts. You can configure these permissions in the Settings > Roles section of Superset’s UI. Ownership, tags, or filters can also restrict chart visibility, so check if your role is limited to specific assets or users. More details on permissions and troubleshooting are available here and here.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
Comment From: Devika7733
Thank you