- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2018 12:12 AM
Hi Team, how can we limit the users to be selected in impersonation window? We have a requirement to allow only approved users to be available for impersonators to impersonate.
Solved! Go to Solution.
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018 07:41 AM
Thank you @iamkalai, I have used below condition in before query BR on sys_user table, and it works.
Condition: gs.getSession().isInteractive() && gs.action != ''
Script: if ((gs.action.getGlideURI().toString()).indexOf('impersonate') != -1 || (gs.action.getGlideURI().toString()).indexOf('angular.do?sysparm_type=ref_list_data') != -1) {
<YOUR CODE GOES HERE>
}
NOTE: Do not add above if condition in the condition field, orelse you will get java null pointer exception while updating record in sys_user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2020 09:46 AM
This didn't work for me, could you please provide an example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2020 06:12 AM
Can you tell me your code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 04:17 AM
Hi, This solution works, but if you really want to restrict Impersonation to only one session and one has already impersonated a user. The impersonated user is shown as Recent Impersonations. Is there a way to reset that entry ?