How to secure the person data based on employees department in Department Hierarchy?
Summary: We want to secure the person data in person security profile in such a way that the system looks at the logged in user's own department and then in department tree will consider it as top department and all departments employees which are under the user's assignment department will show up.
In the past it was possible to achieve it by creating Organization Security Profile with an option shown below
and then selecting this organization security profile in Person Security Profile. This would restrict both departments visible to users as well as employee visible to user with a role having this person security profile.