users – Restrict admins from viewing subscribers admins are not overseeing

On our site, we have user hierarchies. User Admin A oversees users in Group A, User Admin B oversees users in Group B, and so on.

We need to ensure User Admin A cannot view users in Group B and vice versa.

This plugin used to have this functionality: https://wpsocket.com/plugin/user-hierarchy/
However, it no longer has the option to restrict if users can view other users.

Any help would be appreciated!