namtok441 opened a new issue #17564:
URL: https://github.com/apache/superset/issues/17564


   **Is your feature request related to a problem? Please describe.**
   
   The `DASHBOARD_RBAC` feature allows you to control access to dashboards 
based on roles. Every dashboard can be associated with different roles. The 
only way to add roles to a dashboard is manually through the UI which can be 
very cumbersome and makes fully automated superset deployments using dashboard 
roles impossible.
   
   **Describe the solution you'd like**
   I would like to suggest to add the "roles" parameter to the import and 
export CLI functionality for dashboards.
   ```
   superset import-dashboards -p dashboard.json
   ```
   At the moment if you export a dashboard, the generated json does not contain 
information about roles. Likewise, it is not possible to import a dashboard 
with predefined roles. I would suggest to add information about the roles to 
the generated json/json for import.
   
   Example dashboard json file to be imported:
   ```
   [...]
   "roles": ["Admin", "Gamma"],
   [...]
   ```
   
   **Describe alternatives you've considered**
   As an alternative adding a new endpoint that let's you add roles to an 
existing dashboard would also be very helpful.
   
   **Additional context**
   `DASHBOARD_RBAC` must be active.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to