dosubot[bot] commented on issue #35795:
URL: https://github.com/apache/superset/issues/35795#issuecomment-3432110355

   <!-- Answer -->
   To list dashboards, charts, datasets, and databases using the Superset API, 
your role needs the following permissions:
   
   - Dashboards: can_read (or can_list/can_show) on Dashboard
   - Charts: can_read (or can_list/can_show) on Chart, plus datasource access 
on the underlying dataset
   - Datasets: datasource_access on the dataset, or 
all_datasource_access/all_database_access for broader access
   - Databases: database_access on the database, or 
all_database_access/all_datasource_access for global access
   
   These permissions apply to both the API and the UI—there are no special 
API-only permissions. If your custom role only has granular "can read" 
permissions but not datasource_access or database_access, you may not see 
assets in API responses. The all_database_access permission grants universal 
access and bypasses these granular checks, which is why it works when others do 
not. You can manage these permissions in Settings > Roles in the Superset UI. 
If you still see empty results, check for ownership, tags, or filters that 
might restrict visibility 
([source](https://github.com/apache/superset/issues/35660), 
[source](https://github.com/apache/superset/blob/master/superset/security/manager.py)).
   
   
   <!-- 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/80baeb3e-771b-46e3-8560-74ccb7d15d0d?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/80baeb3e-771b-46e3-8560-74ccb7d15d0d?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/80baeb3e-771b-46e3-8560-74ccb7d15d0d?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/80baeb3e-771b-46e3-8560-74ccb7d15d0d?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/80baeb3e-771b-46e3-8560-74ccb7d15d0d?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/80baeb3e-771b-46e3-8560-74ccb7d15d0d?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/80baeb3e-771b-46e3-8560-74ccb7d15d0d?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&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/issues/35795)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to