Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › Prevent Admin user from removing other Admin users › Reply To: Prevent Admin user from removing other Admin users
15/05/2019 at 05:17
#5673
Vladimir
Keymaster
Excuse for a delay with answer – I had 2 weeks vacation.
This is a feature active at User Role Editor by default.
Any user with ID not equal 1 (WordPress default admin user) which has ‘edit_users’ capability does not see users with ‘administrator’ role.
Pay attention that if user has ‘ure_manage_options’ capability URE counts him as a superadmin and does not apply to him any restrictions.
Another way to restrict what users are shown (available for editing/deletion) to the current user is Other roles access add-on.