Geneva/UI16: Client side check for impersonation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2016 09:31 AM
Has anyone figured out something you can look at on the client side to see if you are impersonating a user?
Previously we used a UI script to look for a particular element, and then made a modification to the DOM to alert the user that they are impersonating. Now looking at the DOM, I don't see any differences that indicate I am impersonating.
I have also tried using an Ajax call, but I'm getting GlideAjax is not defined
Also getting g_user is not defined
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016 01:07 PM
Sounds great, you should share it on share.servicenow.com.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2016 01:40 PM
I know this thread is a little dated, but y'all inspired me to make this Unimpersonate UI16
edit: The link doesn't seem to be working directly from the community ServiceNow Share https://share.servicenow.com/app.do#/detailV2/7f12cd65137f12404e8cd4a76144b022/overview Yet copy pasting incognito mode loaded it for me, anyway. If they still don't work it should be searchable on share as unimpersonate ui16

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2016 06:58 AM
An unimpersonate patch is now built into the UI16 Developer Patch. It adds an 'Unimpersonate' link underneath the 'Impersonate User' option when you are impersonating someone. It only shows if you are impersonating someone (but can be made permanent).
Contribution welcome over at GitHub.
GitHub - sn-developer/UI16-Developer-Patch: Patches for ServiceNow UI16 interface.
Cheers,
James