- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 02:42 AM
I want to restrict to the admin to impersonate the other user for HRSD module.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 02:45 AM - edited 05-25-2024 02:46 AM
@AnkitT You can remove the sn_hr_core.admin from the admin roles to prevent administrators from viewing the sensitive HR information. For more information, please refer to https://docs.servicenow.com/bundle/washingtondc-employee-service-management/page/product/human-resou...
- Log in as admin.
- From User Administration, go to Roles (left navigation menu).
- Click admin.
- From the Contains Roles tab, click Edit.
- From the Contains Roles List column, highlight and move sn_hr_core.admin to the Collection column.
Note: Also, remove other scoped HR Admin roles, such as sn_hr_le.admin.
- Click Save.
- Log out.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 02:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 02:46 AM
Hi @AnkitT
Can you this it might be helpful
https://www.servicenow.com/community/developer-forum/stop-admin-impersonating/m-p/2217417
Mark it Helpful and Accept solution!! If this helps you to understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 02:51 AM - edited 05-25-2024 02:52 AM
Hi @AnkitT ,
admin genrally has the impersonation option by default and its controlled by a system prop
there is a script include i.e. "ImpersonateEvaluator" see if you can add more roles of HRDS to the function > canImpersonate to control the visiblity of the option. I hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....