Skip to content

Commit 054d69b

Browse files
Create Readme.md
1 parent 19eee1f commit 054d69b

File tree

1 file changed

+18
-0
lines changed
  • Server-Side Components/Background Scripts/inserting a new record into the sys_user table

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ServiceNow User Creation Script:
2+
Overview:
3+
4+
This script allows you to create a new user in the sys_user table of your ServiceNow instance. It performs checks to ensure mandatory fields are present and avoids creating duplicate users based on the user_name.
5+
6+
It is designed to be directly run in Background Scripts and is easy to adapt for creating multiple users or adding additional fields.
7+
8+
Features:
9+
10+
Dynamically sets field values from a JavaScript object.
11+
12+
Checks that all mandatory fields (user_name, first_name, last_name, email) are provided.
13+
14+
Avoids duplicates by checking if the user_name already exists.
15+
16+
Provides clear logs in the system for success or failure.
17+
18+
Fully compatible with Background Scripts.

0 commit comments

Comments
 (0)