Curious if you can stop impersonations, even if you have the role or are an admin? Well, yes.. yes you can. Check out this video #QuickByte to see and learn how
As a rule: I don’t recommend this. I’m not a trained developer, but I’m good enough with the system to know how to tweak and open, or close, things. Knowing the in’s and out’s of the platform is pretty important to keep your system safe.
Oh, and if you are a decent System Admin, you can always locate this script include and fix it. If you want me to teach you how to block an admin from modifying it, let me know! 😉☺️
🤫🤫
Vimeo Link: Vimeo – Blocking Impersonation
var ImpersonateEvaluator = Class.create();
ImpersonateEvaluator.prototype = {
initialize: function() {},
type: ‘ImpersonateEvaluator’,
canImpersonate: function(currentUser, impersonatedUser) {
var userImpersonated = impersonatedUser.getID();
if(userImpersonated == ‘this is where your sys_ID goes – remove this part in between the quotes’)
{
return false;
}
else
{
return true;
}
}
};
Discover more from Julia's Dev
Subscribe to get the latest posts sent to your email.