Skip to content

Commit 2926aef

Browse files
Update Read.md
Updated Read.md file with examples.
1 parent 66a4d7b commit 2926aef

File tree

1 file changed

+9
-0
lines changed
  • Server-Side Components/Background Scripts/Get Manager Hierarchy

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
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

0 commit comments

Comments
 (0)