File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Server-Side Components/Script Actions/Deactivate Inactive Users and Notify Managers Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments