We have used the security function user.isInChainOfCmdOfEmpInHR. I would like to add this to queries we use for displaying anyone in a reporting chain. Does anyone have or know how to get the logic behind this function?