Setting the parent/root of an Organizational Chart

Hi all,

I know that there are no conditional filters on the Organizational Chart block, so I was wondering whether anyone has found a custom-code workaround to set the parent/root of the block.

My Use Case
We have partners who invite other users. They manage them, and earn commission off their dealings.

Each invitee can apply to be a ‘partner’, and thus there may be several layers of this hierarchy (some of which would have not been introduced by the top partner). I would like to show the partner all the users who they have introduced, and the users that their invitee have introduced.

I wonder if there is any way, through custom coding, we can specify the root/parent of the chart to be the logged in user…

Thanks!