hierarchy up by uid_personhead

Hi all Community

I am wondering if there easy and maybe out of the box way to get all the managers UP from a given Person by UID_PersonHead and not by Department hierarchy.

Thanks to any kind person who will satisfy my curiosity.

A