Stop direct access to employee service center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2022 12:36 AM
Hello,
I need your help because I have to avoid to create unnecessary HR profile not to breach my company's license counts.
This is the situation.
We employee login to the servicenow service portal and then click an icon to move on to the employee service center.
The icon is shown to employees who has HR profile.
Some employee directry access to the employee service center URL who don't have HR profile and should not access to them.
By accessing to the ESC, HR profile is created (This is OOTB in my understanding)
Is there any solution?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2022 09:55 PM
Hi Kohei,
This article will help you to understand :https://community.servicenow.com/community?id=community_blog&sys_id=ba528ba5dbd344106064eeb5ca9619bf
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2022 01:12 AM
Hi Kohei,
Any update to this ?Any follow-up required? if not
Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2022 06:02 AM
Hi
if(new GlidePluginManager().isActive("com.sn_hr_core")) {
data.isHrCoreActive = true;
// HR Profile
var hrProfileGr = new GlideRecord('sn_hr_core_profile');
hrProfileGr.addQuery('user', gs.getUserID());
hrProfileGr.setLimit(1);
hrProfileGr.query();
if (!hrProfileGr.next()) {
hrProfileGr.setValue('user', gs.getUserID());
hrProfileGr.insert();
}
}
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2022 07:33 PM
Thanks, Sheridan
Could you please where the script is?
I could not find it

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 06:06 AM