I want editors to be able to list, add and edit users. I thought the following code would do it, but it doesn't work - no new User menu appears for any editors. Have I missed something?
function increase_editor_role(){
$role = get_role('editor');
$role->add_cap('list_users');
$role->add_cap('edit_users');
$role->add_cap('create_users');
}
add_action('admin_init', 'increase_editor_role');