We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5894073 commit 5fdb993Copy full SHA for 5fdb993
Server-Side Components/Background Scripts/Find Top-Level Manager Hierarchy/Readme.md
@@ -1,3 +1,13 @@
1
The script retrieves the top-level manager for the currently logged-in user by traversing the manager hierarchy in the sys_user table.
2
3
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