This plugin allows us to use identity of another user. User have to log in with its real account and can choose to use an another profile. Can be useful for training/learning or development platforms.
Just enable it in the Manager (section “plugins”) by setting a rule. Impersonation can be allowed or denied for specific users. Furthermore, specific identities like administrators or anonymous users can be forbidden to impersonate.
Set a macro like this :
_whatToTrace -> $real__user ? "$real__user / $_user" : $_user / $_user
and set Genaral Parameters > Logs > REMOTE_USER
with _whatToTrace
By example : $real_uid eq 'dwho
' or $real_groups =~ /\bsu\b/
Keep in mind that real session is computed first. Afterward, if access is granted, impersonated session is computed with real and spoofed session attributes if Impersonation is allowed.
$uid ne 'dwho'