Added method to detect user in hierarchy for Issue #7269