Skip to content

Commit 582252d

Browse files
Create README.md
1 parent 1896c64 commit 582252d

File tree

1 file changed

+11
-0
lines changed
  • Server-Side Components/Script Includes/LoggedInUsersCountries

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# getLoggedUserCountryLocs Script Include
2+
3+
## Overview
4+
5+
The **getLoggedUserCountryLocs** Script Include is a custom ServiceNow utility that retrieves all users who belong to the same **country** as the **currently logged-in user**.
6+
7+
It performs this by:
8+
1. Fetching the logged-in user's country (based on their location record).
9+
2. Identifying all location records that belong to the same country.
10+
3. Gathering all users assigned to those locations.
11+
4. Returning a GlideRecord-encoded query string (`sys_idIN...`) that can be used to filter or query other records.

0 commit comments

Comments
 (0)