Skip to content

Commit e0580b5

Browse files
Create Readme.md
Notify Manager on User Deactivation
1 parent e9c6c9c commit e0580b5

File tree

1 file changed

+21
-0
lines changed
  • Server-Side Components/Script Actions/Deactivate Inactive Users and Notify Managers

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Script Action: Notify Manager on User Deactivation
2+
3+
Overview
4+
This Script Action is triggered when the event user.deactivation.notify_manager is fired by a background or scheduled job.
5+
It dynamically sends an email notification to the manager of the deactivated user using the GlideEmailOutbound API.
6+
7+
Purpose
8+
Automatically inform a user’s manager when their account has been deactivated due to inactivity.
9+
Use event-driven notification — no direct email sending in the scheduled job script.
10+
Keep manager email addresses dynamic, using event parameters (parm1, parm2).
11+
12+
Event and Parameters
13+
The Script Action listens for this event:
14+
Event name: user.deactivation.notify_manager
15+
16+
Explanation
17+
parm1 and parm2 are populated dynamically by the job that fired the event.
18+
parm1 → user’s name
19+
parm2 → manager’s email
20+
GlideEmailOutbound is used to send emails programmatically without needing a Notification record.
21+
The message body is kept simple and readable, but can be formatted in HTML if needed.

0 commit comments

Comments
 (0)