Skip to content

Commit 9434793

Browse files
Create README.md
1 parent d09071b commit 9434793

File tree

1 file changed

+15
-0
lines changed
  • Integration/Scripted REST Api/Return User Info by Email

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# 🌐 Scripted REST API – Get User Info by Email
2+
3+
## 📋 Description
4+
This Scripted REST API returns basic user information (name, title, department, location) based on an email address passed as a query parameter.
5+
6+
## 📦 Files Included
7+
- `ScriptedRESTAPI_GetUserInfo.js`
8+
9+
## 💡 Use Case
10+
Useful for integrations or external systems needing user data from ServiceNow without exposing full records.
11+
12+
## 🛠 Setup Instructions
13+
1. Create a new **Scripted REST API** with namespace `x_userinfo`.
14+
2. Add a resource with path `/get_user` and method `GET`.
15+
3. Paste the provided script into the resource script field.

0 commit comments

Comments
 (0)