Other Roles Access additional module for User Role Editor Pro WordPress plugin allows to block roles from selection in the WordPress drop-down lists (e.g at user profile) by the user with current role. Those roles tabs at the “Users” page will be hidden from the current role too. This way you may add to your WordPress some kind of roles hierarchy – which roles are available for the current one, but which are not.
Turn on this checkbox at “Additional Module” tab of User Role Editor Setting page in order to activate “Other Roles Access” add-on:
Then you will see new added button “Other Roles” at “User Role Editor” page under “Users” menu:
“Other Roles” button works for the role with “edit_users” capability included. Click on this button opens dialog window with the list of roles. Turn on checkboxes near the roles you wish to block for selection in the WordPress drop-down lists for the current role, e.g. “User Manager” in our example:
Press “Update” to save your changes. After this the user with “Local Admin” role will not see blocked roles at the WordPress drop-down lists, like at “User Profile” page:
Users with blocked roles will not be available for view/edit at the “Users” page also. It’s not possible to assign blocked roles to the new user at the “Users->Add New” page.