HR Profiles automatically getting created

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-27-2018 03:15 AM
Can anyone help how to stop the HR Profiles creating automatically in the Service Now system:
Requirement : HR Profiles should be created only by admin and user_admin
I found one business rule and one client script and deactivated it but even though the profiles are getting created,
I had put a condition that only core admin and user_admin roles can create HR Profiles but even no role users are able to create the HR Profiles now.
Deactivated script are as follows:
Business rule- Create HR Profile for users
Client script - Set HR Profile on subject person change
There was one more script include 'hr_CreateProfilesAJAXProcessor' even i deactivated this but the HR Profiles is getting created
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-27-2018 09:49 AM
Can you describe the use case for not wanting to create HR Profiles? The HR Service Delivery product heavily relies on users having HR Profiles so disabling profiles for users that are being supported will break a lot of functionality. The BR to create profiles is in place so that anyone that has a case created for them will automatically have an HR Profile created and ensure that the HR product can function properly to support that employee.
Our delivered integrations have a shouldSkipTransform() method in the script includes that can be used if you are trying to prevent certain employees from having profiles because they are not supported by HR (ex: contractors). This will still create a sys_user record for the person without creating a HR Profile.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-30-2018 10:07 PM
Hi Kiel,
I have a requirement like HR profiles should always create from workday but In my case HR Profiles are automatically creating when end user login and open "HR Portal" URL.
Could you please let me know how can stop creating HR profiles by system.
I have checked the same in personal instance which is working as expected.
Thanks,
Poojitha BN

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-30-2020 08:39 AM
I was facing the same issue when the HR profile for a user was getting created automatically, I looked into this issue and found that an onChange client script "Set HR Profile on subject person change" was triggering on the HRCase form. This client script in turn called "hr_CaseAjax" Script include which has a createOrGetProfileFromUser method. This method is responsible for creating an auto generated profile for a user.