replace_role_privileges
Replace all existing security role privileges with a new set of permissions to restructure role access levels in Dataverse.
Instructions
Completely replaces all existing privileges in a security role with a new set of privileges. WARNING: This removes all current privileges and replaces them with the specified ones. Use this for comprehensive role permission restructuring.
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| privileges | Yes | Array of privileges to replace existing privileges with | |
| roleId | Yes | ID of the role to replace privileges for | 
Input Schema (JSON Schema)
{
  "properties": {
    "privileges": {
      "description": "Array of privileges to replace existing privileges with",
      "items": {
        "additionalProperties": false,
        "properties": {
          "depth": {
            "description": "Access level for the privilege",
            "enum": [
              "Basic",
              "Local",
              "Deep",
              "Global"
            ],
            "type": "string"
          },
          "privilegeId": {
            "description": "ID of the privilege",
            "type": "string"
          }
        },
        "required": [
          "privilegeId",
          "depth"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "roleId": {
      "description": "ID of the role to replace privileges for",
      "type": "string"
    }
  },
  "required": [
    "roleId",
    "privileges"
  ],
  "type": "object"
}