email notification for impersonate User

Navneet3
Tera Expert

Hi

The management would like to get an email anytime admin impersonate a user. I got the email notification working but I am not able to get who is the user name in the body of an email? help please?

I found this article helpful but the script sends an email to the user which I don't want.

I want the user name in the body of an email who the admin impersonated.

https://community.servicenow.com/community?id=community_question&sys_id=b0a38b65dbd8dbc01dcaf3231f961967&view_source=searchResult

 

Thank you 

6 REPLIES 6

Hi

I also want to add to the script who impersonated the user?

Sumit Maniktal1
Tera Expert

If you just want to add user name that it is already there in event.parm2. So add below line in your existing mails script

template.print('Impersonated user: ' + event.parm2);