File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Server-Side Components/Inbound Actions/Inbound Email Action to Create User and Assign Groups Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ Inbound Email Action to Create User and Assign Groups
2+
3+ If an admin sends an email with specific user details, the script automatically:
4+ Creates a new user (if not existing).
5+ Assigns them to multiple groups.
6+
7+ Create new Inbound Action:
8+ Target table: sys_user
9+ Type: New / Reply (depending on how you want it triggered)
10+
11+ Example Email Format
12+
13+ Subject: Create New User
14+ Name: Abc Xyz
15+ Email: abc.xyz@example.com
16+ UserID: abc_xyz
17+ Department: IT
18+ Groups: Network Team, Application Support, Database Admins
19+
20+ Working:
21+
22+ Script reads each line from email body.
23+ Extracts values for each field (Name, Email, etc.) using regex.
24+ Checks if the user exists → if not, creates it.
25+ Adds the user to the given list of groups.
You can’t perform that action at this time.
0 commit comments