GitHub user dosubot[bot] added a comment to the discussion: Multi-Tenant User 
management

<!-- Answer -->
The error means your Superset environment can't find the RoleRestAPI class in 
superset/security/api.py. In both 5.0.0 and 54.1.2, RoleRestAPI should be 
present and is responsible for the /api/v1/security/roles/ endpoint 
([source](https://github.com/apache/superset/blob/308007f909b5a3c1cdd6fc5632ef27ca7eb97ce0/superset/security/api.py)).
 If it's missing, your installation might be corrupted, incomplete, or using a 
custom/modified codebase.

Please check your superset/security/api.py file and confirm if RoleRestAPI is 
defined there. If not, try reinstalling Superset or restoring the correct 
version of that file. Once RoleRestAPI is present, you can subclass and 
override it as planned for tenant-based filtering. If your file is custom or 
patched, you’ll need to adapt your override to match the actual implementation 
of the /api/v1/security/roles/ endpoint in your environment.


<!-- 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/69b02d45-fcf5-46e4-94df-a9674cd67cf5?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/69b02d45-fcf5-46e4-94df-a9674cd67cf5?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/69b02d45-fcf5-46e4-94df-a9674cd67cf5?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/69b02d45-fcf5-46e4-94df-a9674cd67cf5?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/69b02d45-fcf5-46e4-94df-a9674cd67cf5?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/69b02d45-fcf5-46e4-94df-a9674cd67cf5?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/69b02d45-fcf5-46e4-94df-a9674cd67cf5?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/33877)

GitHub link: 
https://github.com/apache/superset/discussions/33877#discussioncomment-13637372

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