Skip to content

Commit 395dc61

Browse files
Create Readme.md
Inbound Email Action to Create User and Assign Groups
1 parent 97b5e29 commit 395dc61

File tree

1 file changed

+25
-0
lines changed
  • Server-Side Components/Inbound Actions/Inbound Email Action to Create User and Assign Groups

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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.

0 commit comments

Comments
 (0)