The CreatorCon Call for Content is officially open! Get started here.

OOTB New Hire Onboarding (demo) issue

ChunjiJ
Tera Contributor

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.

ChunjiJ_0-1758258921904.png

 

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.

ChunjiJ_1-1758259165288.png

ChunjiJ_2-1758259277708.png

 

 

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!

2 ACCEPTED SOLUTIONS

SP22
Giga Sage

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

View solution in original post

Ravi Gaurav
Giga Sage
Giga Sage

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

  1. 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.

  2. 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.

 

 

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

7 REPLIES 7

Bhuvan
Mega Patron

@ChunjiJ 

 

You can refer below articles that should help to understand the relationship

 

https://www.servicenow.com/community/hrsd-forum/new-hire-onboarding-demo-auto-generate-account-in-ta...

 

https://www.servicenow.com/community/hrsd-forum/user-id-not-populating-automatically-when-new-user-i...

 

https://www.servicenow.com/community/hrsd-forum/auto-create-new-hire-when-a-lifecycle-is-initiated-f...

 

As per community guidelines, you can accept more than one answer as accepted solution. If my response helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

@ChunjiJ 

 

Thanks for marking the post as helpful.

 

As per community guidelines, you can accept more than one answer as accepted solution. If my response helped to guide you or answer your query, please accept the solution.

 

Thanks,

Bhuvan

kaushal_snow
Mega Sage

Hi @ChunjiJ ,

 

The reason the User ID / HR profile remains empty if you delete the Account Notification activity is that the account/user creation logic in the OOTB Lifecycle Event depends on that activity, and specifically on the HR Service being included in the hr_CaseUtils._requiresUserOrProfileCreation mapping, so when the Account Notification activity is removed the workflow that generates the login / subject_person (HR profile) doesn’t get triggered; re adding the Account Notification activity under the Lifecycle first Activity Set with the proper HR Service name ensures the user record is fully created with the subject_person / user_id populated.....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/