Is there a filter to edit html of user-edit.php

instead of editing the complet content, it’s quicker to find the hook to remove

e.g. for the “other role” menu, you can use that :

add_action("wp_loaded", function () {

    remove_all_actions("edit_user_profile");

});