gs.getSession().impersonate() in scoped application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2016 02:55 PM
I have a ServiceNow Application which is programatically called from a Windows Application via Processor. Windows Application sends a username and token to impersonate. In global application I used to do this quite easily by validating the username and token and calling this api:
gs.getSession().impersonate(<user_sys_id>);
Now that Scoped GlideSession doesn't expose impersonate, how could I achieve this?
Thanks,
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2019 11:42 AM
This worked for me, thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2021 05:53 AM
Hi,
We have an app that uses impersonation (via a global script) that we need to submit to the store. Are the solutions mentioned in this post still current, or have things changed in the last few releases?
Thanks,
Tim.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 02:14 AM
There is still no scoped API equivalent for this.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022