Is there any events available for impersonation events , we like to send a notification for user if some one is impersonating his/her account.
Is there any events available for impersonation events , we like to send a notification for user if some one is impersonating his/her account.
While the User.AfterAuthenticate event ( Users In-Process API Service ) will be executed for the impersonated user, it does not identify that the authentication is due to impersonation. It may be possible within a plugin to handle the User.OnAfterIdentify event and if it is a registered user, store within the current Process.State ( Process In-Process API Service ) a value identifying the user. If a User.AfterAuthenticate event occurs within the same Process context and executes for a different user, it could be assumed to be an impersonation.