RemoveRoleAssignment
Removes a specific role assignment from a SharePoint list or list item. Useful for revoking permissions when access is no longer required.
Input
| Name | Type | Required | Description |
| RoleId | Int | True | The unique identifier of the role definition to be removed from the role assignment. |
| PrincipalId | Int | True | The unique identifier of the user or group from which the role assignment will be removed. |
| List | String | True | The internal name of the SharePoint list where the role assignment exists. |
| ItemId | Int | False | The unique identifier of the list item for which the role assignment will be removed. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the role assignment removal operation was successful. Returns 'true' for success and 'false' for failure. |
| ErrorCode | Integer | The error code returned if the procedure fails to execute successfully. |
| ErrorMessage | String | The error message returned if the procedure fails to execute successfully. |