GitHub user gpandolfino created a discussion: How to restrict visible users and 
roles in dashboard ownership/visibility dropdowns for specific custom roles?

## Context

We're implementing a custom role for external users that should have limited 
visibility when editing dashboards. Specifically, we need to:

1. **Restrict user visibility**: When changing dashboard ownership, users with 
this custom role should only see other users with the same role (not all system 
users)
2. **Restrict role visibility**: When assigning dashboard visibility, users 
with this custom role should only see their own role and base roles (Gamma, 
sql_lab) - not other custom roles

## Question

- What is the recommended approach to filter users and roles in the dashboard 
edit UI dropdowns for specific custom roles?
- Are there documented methods that we can override to filter users/roles?
- How does Superset populate the user and role dropdowns in the dashboard edit 
interface?
- Is there an existing feature or configuration option for this use case?
- What's the best practice for implementing role-based filtering of users/roles 
in Superset?

## Use Case

This is for a multi-tenant scenario where external users should only interact 
with users/roles in their own tenant group, preventing accidental cross-tenant 
access assignments.

## Environment

- Superset version: 5.0.0
- Authentication: OAuth with custom SecurityManager (Keycloak provider)

Any guidance, code examples, or pointers to relevant documentation would be 
greatly appreciated!

GitHub link: https://github.com/apache/superset/discussions/37133

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