superset_role_permission_add
Replace all permissions for a role with a specified list. Use with caution: it overwrites existing permissions, so provide the complete set of permission IDs.
Instructions
Set the permissions list for a role (FULL REPLACEMENT).
WARNING: this endpoint REPLACES ALL role permissions with the provided list! To ADD a single permission:
Call superset_role_permissions_get to get current permission IDs
Add the new ID to the list
Pass the FULL list to this tool with confirm_full_replace=True
Args: role_id: Role ID. permission_view_menu_ids: FULL list of permission IDs for the role. Permission IDs can be obtained via superset_permission_list. confirm_full_replace: Confirmation for full permission replacement (REQUIRED).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | ||
| confirm_full_replace | No | ||
| permission_view_menu_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |