- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2018 09:55 PM
Hi,
I need when admin check with impersonate user while select anyone user then email send to that impersonate user.. with message like one of admin(name) accessed your account with admin access...
i am searched in community for this i got
How to Enable Email Notification on Impersonation Event
but in this article configured u_impersonation table but in my instance i don't have that table..
Thanks
Sanjay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2018 11:28 PM
Hi Sanjay,
You can create a new notification for the same using OOB events called "impersonation.start" and "impersonation.end"
Name : Impersonate User
Table : User {The event impersonation.start is registered to this table}
Send When : Event is fired
Event Name : impersonation.end
Users : admin //you can keep any user you want to send
Send to event creator : checked
Subject : Account was impersonated.
Message HTML :
<mail_script>
var gr = new GlideRecord('sys_user');
var abc = event.parm2;
gs.log(abc,"mru");
gr.addQuery('user_name',abc);
gr.query();
if(gr.next())
{
template.print("Hi "+gr.first_name+",");
email.addAddress('cc',gr.email);
}
</mail_script>
Your account was impersonated using ${event.parm1} account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2018 10:05 PM
Hi Sanjay,
I checked that community article it is not clear.
However you can still build an email notification triggered by event. The one in the article is triggered by table operation.
The even name for impersonation is impersonation.start and impersonation.end. You can switch to [Advanced view] in your notification then you can set below trigger conditions on the [When to send] tab.
[Send when] [Event is fired]
[Event name] [impersonation.start]
Cheers
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2018 10:40 PM
I would surly go for this as well. And as parameter 2 you will have the user name of the user that has been impersonated. So a quick mail script will fetch that email and put that in "to".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2018 10:12 PM
Hi Sanjay ,
This is not an OOB feature actually the Blog is talking about custom development, as he is asking to download the update set.
Regards,
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2018 10:27 PM
Thanks for reply,
Hi Kirana Kumar, we are unable to download that update set.. its got error.
Hi Henry Cheng, while event creation what table i can select. i think sys_user?
if any code require please suggest me.
Thanks
Sanjay