- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 10:22 PM
The following issue is really troubling me, and I hope to get help.
It's still about the HRSD OOTB New Hire Onboarding (demo) issue.
submitting a record from the Employee Center should automatically create entries in the user table and HR profile table due to the script under the item.
However, I found that if I delete the
Account Notification activity from the lifecycle, although it can create an entry in the user table, the user ID remains empty.
If I keep the Account Notification activity , the user ID is created normally. I don't understand what relationship exists between user generation and the Account Notification activity. I request your assistance. Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 10:31 PM - edited 09-18-2025 10:32 PM
Hello @ChunjiJ,
I believe below link can answer you.
https://www.servicenow.com/community/hrsd-forum/user-id-not-populating-automatically-when-new-user-i...
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks
Santosh.p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 10:33 PM
Hi @ChunjiJ
-
In OOTB New Hire Onboarding (demo), the Account Notification activity in the Lifecycle Event is not just a “notification” step — it actually triggers parts of the account creation / provisioning flow.
-
Specifically:
-
When you submit onboarding, a Lifecycle Event execution plan runs.
-
The Account Notification activity calls the HR integration / provisioning subflow (sometimes referencing the Create HR User or Provisioning - Create User activity).
-
That subflow is responsible for filling in details like User ID on the sys_user record (based on HR profile and new hire details).
-
-
If you remove that activity, the record in sys_user is created because the initial script on the catalog item inserts a stub, but the logic to generate and assign a unique User ID never runs.
-
Catalog Item Script: Creates HR Profile + Sys_user shell entry.
-
Account Notification Lifecycle Activity:
-
Calls into OOTB subflow Generate User ID (uses transform logic or naming convention from config).
-
Populates user_name field.
-
Ensures proper sync with HR profile.
-
So, the dependency is: User ID generation is tied to Account Notification flow → not just email sending.
What You Can Do
-
If you must delete/replace the activity:
-
Copy the subflow logic from Account Notification that handles user_name generation.
-
Add it as a standalone activity in your lifecycle.
-
Or call the OOTB subflow sn_hr_core.Create HR User / sn_hr_core.Generate User ID before sending your own notifications.
-
-
If you just want to suppress the email:
-
Keep the Account Notification activity but disable or replace only the notification action inside it.
-
That way, the user creation logic still runs, but you won’t spam with unnecessary notifications.
-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 10:31 PM - edited 09-18-2025 10:32 PM
Hello @ChunjiJ,
I believe below link can answer you.
https://www.servicenow.com/community/hrsd-forum/user-id-not-populating-automatically-when-new-user-i...
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks
Santosh.p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 10:33 PM
Hi @ChunjiJ
-
In OOTB New Hire Onboarding (demo), the Account Notification activity in the Lifecycle Event is not just a “notification” step — it actually triggers parts of the account creation / provisioning flow.
-
Specifically:
-
When you submit onboarding, a Lifecycle Event execution plan runs.
-
The Account Notification activity calls the HR integration / provisioning subflow (sometimes referencing the Create HR User or Provisioning - Create User activity).
-
That subflow is responsible for filling in details like User ID on the sys_user record (based on HR profile and new hire details).
-
-
If you remove that activity, the record in sys_user is created because the initial script on the catalog item inserts a stub, but the logic to generate and assign a unique User ID never runs.
-
Catalog Item Script: Creates HR Profile + Sys_user shell entry.
-
Account Notification Lifecycle Activity:
-
Calls into OOTB subflow Generate User ID (uses transform logic or naming convention from config).
-
Populates user_name field.
-
Ensures proper sync with HR profile.
-
So, the dependency is: User ID generation is tied to Account Notification flow → not just email sending.
What You Can Do
-
If you must delete/replace the activity:
-
Copy the subflow logic from Account Notification that handles user_name generation.
-
Add it as a standalone activity in your lifecycle.
-
Or call the OOTB subflow sn_hr_core.Create HR User / sn_hr_core.Generate User ID before sending your own notifications.
-
-
If you just want to suppress the email:
-
Keep the Account Notification activity but disable or replace only the notification action inside it.
-
That way, the user creation logic still runs, but you won’t spam with unnecessary notifications.
-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 11:40 PM
Thank you very much for your answer. It has been very helpful to me.
I would like to delete this activity.
May I ask where I can find the OOTB subflow sn_hr_core.Create HR User / sn_hr_core.Generate User ID? I haven’t been able to locate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2025 07:14 AM
I have found OOTB subflow sn_hr_core.Create HR User / sn_hr_core.Generate User ID ,
Thank you! This resolved my issue.