superset_dashboard_grant_role_access
Grant a role access to a dashboard by automatically adding datasource permissions for all its datasets. Supports dry-run to preview changes before applying.
Instructions
Grant a role access to a dashboard by automatically finding all dashboard datasets and adding datasource_access to the role's permissions.
The tool automatically:
Finds all datasets used by the dashboard's charts
Finds permission_view_menu_id for datasource_access of each dataset
Checks which permissions the role already has
Adds missing datasource_access to the role's existing permissions
Checks for RLS rules on the datasets and warns if missing
Without confirm_grant=True, shows the action plan (dry-run).
Args: dashboard_id: Dashboard ID (from dashboard_list). role_id: ID of the role to grant access to (from role_list). confirm_grant: True to apply changes. False for dry-run only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | ||
| dashboard_id | Yes | ||
| confirm_grant | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |