Change WordPress user roles and capabilities Forums Bug Reports Admin Users can’t see other Admin Users Reply To: Admin Users can’t see other Admin Users

#7797
Vladimir
Keymaster

Hi,

User Role Editor has “administrator protection” feature turned ON by default. It hides ‘administrator’ role and other users with ‘administrator’ role from all users who can edit other users, but has ID not equal 1.
It’s possible to switch off this feature via filter. Add this code to your active theme functions.php file or setup it as a Must Use plugin:

//—

// Switch off URE’s protection of users with ‘administrator’ role from each other and other users with ‘edit_users’ capability

add_filter( ‘ure_supress_administrators_protection’, ‘switch_off_ure_admin_protection’, 10, 1);

function switch_off_ure_admin_protection( $switch_off ) {

$switch_off = true;

return $switch_off;

}
//—