- My View
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...:)
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
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.
Please click Like, Helpful or Correct depending on the impact of the response. This enables other customers to learn from your thread.