Restricting Impersonation using ACL script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 09:49 AM
Need to have an ACL script in order to restrict a group of people(say group A) from impersonating people from other group(say group B). It has to show an error message like, "This person cant be impersonated", while searching for that restricted group's person.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 09:57 AM
You can refer below solution in the below thread and adjust it accordingly as per your requirement.
https://community.servicenow.com/community?id=community_question&sys_id=af46cfa1db1cdbc01dcaf3231f9619be
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 10:07 AM
This code says that, it wont be applicable for admin role.
The requirement is such that, people from both group A and B is having admin role; but one group couldn't impersonate the other

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 10:00 AM
Hi Gopika,
Follow link. This is not via ACL but throuh Query BR. Can you confirm the need to stick with ACL approach.