We need to restrict the managers to switch in Act As a Proxy Mnaager Search page
We've created a custom Compensation Manager role. The person with this role should act as a proxy only for the managers who exists in the legal employer he's assigned as Comp.Admin with AOR, he should not be able to switch to a manager he has not access to.
So the custom role is secured by an AOR security profile in our design. The result is, custom role works and restricts the people in the person management screen, but it does not work in Act as a Proxy Manager >Manager search window, all the managers are still accessible here.