email notification for impersonate User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 08:30 AM
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
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2022 10:24 AM
Hi
I also want to add to the script who impersonated the user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 08:59 AM
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);