Possible to search user hierarchy via script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2023 01:00 PM
I am trying to create a script that can see if a user falls anywhere bellow another user in the employee hierarchy.
For example: I want to see if Jane Smith is below John Doe in the employee hierarchy. That means that if Jane's manager is John Doe, or if Jane's manager's manager is John doe, the script would return true. Otherwise it would return false. The script would check all the way up the hierarchy and look for a match with John Doe.
The "Show Employee Org Chart" link at the bottom of a user's HR profile breaks down the hierarchy visually, but i don't know how to turn that same functionality into a script. Any help is appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 02:20 AM
Hi, I am also looking for something similar, did you get any solution for the same?