File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Server-Side Components/Background Scripts/Get Manager Hierarchy Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ ** Get the complete hierarchy of the managers for a given user.**
2+ This script uses a recursive function to fetch the complete list of managers for any given user. Consider the following example.
3+ <img width =" 929 " height =" 298 " alt =" Screenshot 2025-10-20 at 1 29 11 AM " src =" https://github.com/user-attachments/assets/aeeb718c-e528-4ff7-b4e1-f3d5d9772791 " />
4+
5+ In this example user Abel Tutor reports to Abraham Lincoln, Abrham reports to Adela Cervantsz, Adela reports to Aileen Mottern and so on.
6+
7+ In order to fetch this complete hierachy the getManagerHierachy script can be used. Here is the example of this script with output.
8+ <img width =" 1394 " height =" 635 " alt =" Screenshot 2025-10-20 at 1 34 36 AM " src =" https://github.com/user-attachments/assets/32fa4369-9743-4335-854f-63bdaf20f6e4 " />
9+
110
You can’t perform that action at this time.
0 commit comments