GitHub user dosubot[bot] added a comment to the discussion: Create role using API
<!-- Answer --> Yes, for Superset 4.0 you do need to set FAB_ADD_SECURITY_API = True in your superset_config.py and then run superset init. This change is required because the List Roles FAB view was moved to the frontend, and the roles API endpoint (/api/v1/security/roles/search/) is only available if this flag is enabled. After making this change and restarting Superset, your 404 error on the roles API should be resolved. You can see this requirement confirmed in the [release notes and PR](https://github.com/apache/superset/pull/33869). If you still get a 404 after this, double-check for any proxy or URL prefix issues in your deployment. <!-- 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/94ebc9bd-3788-407d-95f3-98ce482db36c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/94ebc9bd-3788-407d-95f3-98ce482db36c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/94ebc9bd-3788-407d-95f3-98ce482db36c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/94ebc9bd-3788-407d-95f3-98ce482db36c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/94ebc9bd-3788-407d-95f3-98ce482db36c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/94ebc9bd-3788-407d-95f3-98ce482db36c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/94ebc9bd-3788-407d-95f3-98ce482db36c?feedback_type=other)</sup> [](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/33878) GitHub link: https://github.com/apache/superset/discussions/33878#discussioncomment-13559025 ---- 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]
