File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Server-Side Components/Background Scripts/User Email mismatch with Cmn Notif device Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments