Skip to content

Commit 7b25f95

Browse files
authored
Add README.md
Instructions about the overview of the script
1 parent 71fe743 commit 7b25f95

File tree

1 file changed

+25
-0
lines changed
  • Server-Side Components/Background Scripts/User Email mismatch with Cmn Notif device

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Email Mismatch Checker
2+
3+
## Description
4+
5+
This ServiceNow background script checks for mismatches between notification devices and user records based on email addresses.
6+
7+
It looks for active `cmn_notif_device` records that:
8+
- Have a non-null `email_address`
9+
- Are linked to a user
10+
- Are of type "Email"
11+
- Are named "Primary Email"
12+
13+
Then it verifies if a matching user exists in the `sys_user` table with the same email. If no match is found, the mismatch is logged.
14+
15+
## How to Use
16+
17+
1. Go to **Scripts > Background** in your ServiceNow instance.
18+
2. Paste the script.
19+
3. Run the script.
20+
4. Check the system logs for mismatch details.
21+
22+
## Output
23+
24+
Logs the number of mismatches and details like:
25+
Mismatch: Device=<device_name>, Device Email=<email_address>

0 commit comments

Comments
 (0)