Thanks for trying to help, but this didn’t work.

This piece of code only removed the Capabilities field with the ‘edit capabilities” link, but the entire section “Additional capabilities” including the dropdown field “Other Roles” is still there.

I only want the “Manager” role I’ve created to be able to change the user role of other users (let’s say from Subscriber to Contributor), but restrict it to a maximum of manager. I don’t want an extra field/section to assign ADDITIONAL roles or capabilities.