[HR Lifecycle Events Cases] How user is created when submitting Onboarding Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 08:04 PM
When user submit a Onboarding Request from HR portal, a new user record and HR profile is generated by the system. Can anyone explain how this process work because we want to customize the generation process (have some custom fields to map to user fields).
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 12:05 AM
It is happening from script include and its methods called internally. That means
Request Onboarding record producer is calling hr_ActivityUtils().createCaseFromProducer(current, producer, cat_item.sys_id); ->(calling) new sn_hr_core.hr_ServicesUtil(current).createCaseFromProducer(producer, recordProducerId); -> (calling) hrCaseUtils.populateCase(service, questions, source); -> (calling) hrProfile.createOrGetProfileFromParameters(parameters); -> (calling) hr_SysUser.instance.createUserRecordFromParameters(parameters, false);
Hope you understand the flow...:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 12:24 PM
I had the same question, and haven't completely digested the whole process. I'm not sure where the insert of the user and profile happend but I have found that the login credentials are set in the Workflow called Account Notification which starts when the HR Service Account Access is triggered in the first Activity Set

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 02:36 PM
The user insert occurs in the hr_CaseUtils script include as part of the setGeneralFields() method. This method has an if statement that checks the _requiresUserOrProfileCreation, which defines the HR Services that require the creation of a user. The default value is 'request_onboarding' which references the delivered service but you can add any additional HR Services and lifecycle events that require this user creation functionality as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2018 10:25 AM
But where does it get triggered from? And how can we specify what fields from the Record Producer go where in the User Record/HR Profile? And how do we add a role to the new User account?
The whole Lifecycle Events is pretty convoluted, or I'm just stuck on the old Workflow ways?????