Skip to content

Commit 5fdb993

Browse files
Update Readme.md
1 parent 5894073 commit 5fdb993

File tree

1 file changed

+10
-0
lines changed
  • Server-Side Components/Background Scripts/Find Top-Level Manager Hierarchy

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
The script retrieves the top-level manager for the currently logged-in user by traversing the manager hierarchy in the sys_user table.
22

33
It starts from the current user and moves up through each manager until it reaches a user who does not have a manager.
4+
5+
The script starts with the current user (e.g., Employee).
6+
7+
It checks if the user has a manager.
8+
9+
If yes, it moves up the hierarchy to the manager.
10+
11+
It repeats this process until it reaches a user who does not have a manager.
12+
13+
That user is considered the Top-Level Manager.

0 commit comments

Comments
 (0)