GitHub user dosubot[bot] added a comment to the discussion: Multi-Tenant User management
<!-- Answer --> You're correct—RoleRestAPI is not present in Superset 5.0.0. The /api/v1/security/roles/ endpoint is actually implemented by SupersetRoleApi (a subclass of RoleApi from Flask AppBuilder) in superset/security/manager.py when FAB_ADD_SECURITY_API is enabled. To customize the roles dropdown for tenant-based filtering, subclass SupersetRoleApi and override its list method with your filtering logic. Register your custom API in FLASK_APP_MUTATOR inside superset_config.py to ensure it only affects the roles endpoint and not other APIs. This is the supported and upgrade-friendly way to achieve your goal in 5.0.0. Let me know if you want a code outline for this pattern. <!-- 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/d736aa7e-8db9-48f5-943e-c5457847cde1?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d736aa7e-8db9-48f5-943e-c5457847cde1?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d736aa7e-8db9-48f5-943e-c5457847cde1?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d736aa7e-8db9-48f5-943e-c5457847cde1?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d736aa7e-8db9-48f5-943e-c5457847cde1?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d736aa7e-8db9-48f5-943e-c5457847cde1?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d736aa7e-8db9-48f5-943e-c5457847cde1?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/33877) GitHub link: https://github.com/apache/superset/discussions/33877#discussioncomment-13679725 ---- 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]
