Check if user accessing a form is impersonated?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 06:51 PM
I want to block a user from accessing a form record if the user was impersonated by a user with the admin role. I control read access with ACL but of course the admin can impersonate users that have a role with read access. Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 07:14 PM
Could you add new GlideImpersonate().isImpersonating() to your Read ACL script? It will return true if user is impersonating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 07:33 PM
This doesn't sound like a technical issue. Maybe you need to talk to your Sys admin .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 07:46 PM
Well it could be an organizational problem. 🙂 I still need to control it though.The ACL works and blocks the user with admin from reading certain fields. What I want is to block users with the admin role impersonating another user with the proper role and then to read these confidential fields.