GlideImpersonate is not allowed in Scoped application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 02:10 AM
We have a requirement to hide the application from the users who are impersonating the custom application users with respective to the specific roles in ACL . But getting an error message that impersonation is not allowed inside scoped application.
Below is the code :
if (GlideImpersonate().isImpersonating() && gs.getProperty('impersonation_check') == 'true')
answer = false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 03:08 AM
Hi @vidyabb
Please refer below link for further help:
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 03:15 AM
I want to restrict impersonation from admin user to impersonate application users