GitHub user dosubot[bot] added a comment to the discussion: all user of a specific role
<!-- Answer --> Yes, Apache Superset has an API that can fetch all users with a specific role. You can use the `/api/v1/security/roles/search/` endpoint with query parameters to filter roles by name and retrieve associated user IDs. Here's an example of how to use this API: ```python GET /api/v1/security/roles/search/?q=(filters:!((col:name,value:'<role_name>'))) ``` Replace `<role_name>` with the name of the role you want to filter by. This will return a list of roles matching the specified name, along with their associated user IDs <sup>[[1]](https://github.com/apache/superset/blob/master/superset/security/api.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/34de7492-ab06-49e7-8af2-8b4894edcee8?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/34de7492-ab06-49e7-8af2-8b4894edcee8?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/34de7492-ab06-49e7-8af2-8b4894edcee8?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/34de7492-ab06-49e7-8af2-8b4894edcee8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/34de7492-ab06-49e7-8af2-8b4894edcee8?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/34de7492-ab06-49e7-8af2-8b4894edcee8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/34de7492-ab06-49e7-8af2-8b4894edcee8?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/33227#discussioncomment-12934405 ---- 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]
