Change WordPress user roles and capabilities › Forums › Bug Reports › User delete/edit permission not working for custom role › Reply To: User delete/edit permission not working for custom role
Menu item “Tools->Erase personal data” is protected by virtual user capability ‘erase_others_personal_data’. WordPress maps it by default to ‘manage_network’ for multisite and ‘manage_options’ for single site installation.
User Role Editor Pro can change this:
Try to turn ON the “Privacy related (manage_privacy_options, export_others_personal_data, erase_others_personal_data)” option at the “Settings->User Role Editor->Additional Modules” tab. Grant ‘erase_others_personal_data’ capability to your role then. Will it help?