GitHub user dosubot[bot] added a comment to the discussion: Create role using 
API

<!-- Answer -->
In Superset 4.0, there is no supported REST API for assigning dataset 
permissions to roles or for retrieving the dataset permission IDs 
(PermissionViewMenu IDs) programmatically. All relevant permission management 
for datasets is only available internally and not exposed via API, so you can't 
automate this process through API calls in this version. Managing dataset 
permissions for roles must be done through the Superset UI or by direct 
database changes (which is not recommended or supported) 
[reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/security/api.py).

If automation is critical for your workflow, keep an eye on future Superset 
releases for improved API support.


<!-- 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/6b14db43-ea5f-4dd6-bf8a-ee1271539bbd?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/6b14db43-ea5f-4dd6-bf8a-ee1271539bbd?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/6b14db43-ea5f-4dd6-bf8a-ee1271539bbd?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/6b14db43-ea5f-4dd6-bf8a-ee1271539bbd?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/6b14db43-ea5f-4dd6-bf8a-ee1271539bbd?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/6b14db43-ea5f-4dd6-bf8a-ee1271539bbd?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/6b14db43-ea5f-4dd6-bf8a-ee1271539bbd?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sh
 are 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/33878)

GitHub link: 
https://github.com/apache/superset/discussions/33878#discussioncomment-13730805

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