I am trying to introduce controls to users and promote users with elevated rights to monitor the users (which is still done my me, as the site admin) This is because the task is a bit comprehensive with the increasing users for the site.
I know I can hide an entire page using a function, as described here, or by using a plugin. But what I want to achieve specifically is to give a selected few users (hereinafter referred to as "managers"), the ability to add/edit other users of the site. But the personal options in
user-edit.php must not be touched by managers.
Currently I have given access to managers for that page and I use an
if function to see if logged in user is an admin and display personal options only then.
I understand that the core files shall not be edited as the changes would be removed once an update is installed. Is there a function or some other way, (preferably a non-plugin solution) to achieve the above?