After an impersonation using session.onlineImpersonate(), can a subsequently triggered business rule identify the original user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2019 07:01 AM
We have a script that does a session.onlineImpersonate().
It then inserts a record, which triggers a business rule.
Within the business rule, can the original user be identified via GlideSession or other mechanism?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2019 07:32 AM
There is an impersonation log record created for every Impersonation activity. See if this helps.
and in the below thread using a script action there is a solution proposed to capture the user activity.
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2019 09:39 AM
Thanks Prateek.
What I'm looking for is a JavaScript function that would return the old (prior to impersonation) user.
Do any of the Glide scripts provide something like that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 10:50 AM
I am afraid there is no direct method, may be instead you can utilize gs.getSession() object to add current user prior to impersonation to the session and retrieve it as shown here.