Can we hide specific row from the list?

I want to hide a specific user from the user list, so no other user can see or take any action on that particular user.
Hide or freeze.
Requirement: Other users should not able to edit any edit or add any details of the user once it is hidden or freezed, I guess we can acheive this some script. I tried few scripts but it didn’t worked.

Tried:

frappe.ui.form.on('User', {
    onload: function(frm) {
        // Hide the user with email 'hideuser@test.com' from the user list
        $(".frappe-list").on('grid-row-render', function(e, grid_row) {
            var email_field = grid_row.columns.find(column => column.fieldname === 'email');
            if (email_field && email_field.value === 'hideuser@test.com') {
                $(grid_row.row).hide();
            }
        });
    }
});

anyone?