How to restrict admin users impersonating System Admin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2018 06:18 AM
I have admin users who impersonate System Admin which is making hard to track who is making the changes. How can I restrict Admin Users impersonating System Admin user?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2018 06:33 AM
OOTB script include "ImpersonateEvaluator" which cater the impersonation functionality. you just need to make some modification there.
i tried on PDI environment and restrict it by passing the "System Admin" sysid in if condition. if i am an admin and i try to impersonate the "System Admin" it will restrict me to do that.
eg:
var ImpersonateEvaluator = Class.create();
ImpersonateEvaluator.prototype = {
initialize: function() {},
type: 'ImpersonateEvaluator',
canImpersonate: function(currentUser, impersonatedUser) {
var userImpersonated = impersonatedUser.getID();
if(userImpersonated == '6816f79cc0a8016401c5a33be04be441')
{
return false;
}
else
{
return true;
}
}
};

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2023 04:35 AM
We have a requirement to allow users to search using email_id in the impersoantion dialog window.
Any input on this would be much appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2018 06:33 AM
Hi Samadam,
Refer below links.
Restrict a Particular User From Appearing in the Impersonation List
Mark If Correct/Helpful.
Regards,
Devyani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2023 04:34 AM
Hi Devyani,
Is it possible to enable search using email_id in the impersoantor window?