I'm trying to grant the user role 'editor' to have access to the Users top-level menu, and then control which sub-menus they have access to. The add_action lives in the _construct method.
add_action( 'admin_menu', array( $this, 'action_admin_menu' ) );
public function action_admin_menu() {
$edit_contributor = get_role( 'editor' );
$edit_contributor->add_cap( 'edit_users' );
}
I'm expecting the Users menu to appear for an Editor, but it's not working.