You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Department Filter – Show Only Users from Same Department
2
+
3
+
This Script Include is configured to filter users based on the department of the currently logged-in user.
4
+
5
+
It can be used in a **Reference Qualifier** to ensure that the Caller (or any user reference field) displays only users belonging to the same department as the logged-in user.
6
+
7
+
### 📘 Table
8
+
-`sys_user` (to fetch users)
9
+
- Used for reference fields such as `caller_id` in `incident`
10
+
11
+
### ⚙️ Script Include Overview
12
+
- Name: `getSameDeptUsers`
13
+
- Function: `getSameDept()`
14
+
- Logic: Fetches all users whose `department` matches that of the current logged-in user.
0 commit comments