impersonating
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 02:15 AM
Hi All how can i know if the user is impersonated? this doesn't work gs.getSession().Isimpersonating() i get this error :
Illegal access to getter method isImpersonating in class com.glide.sys.GlideSession
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 02:56 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 03:00 AM
Hi @yoli1
Let's use this API below to determines whether the current user is impersonating another user.
isImpersonating()
Returns
Type Description
| Boolean | True: User is currently impersonating another user. False: User is not currently impersonating another user. |
Sample.
function abortOnImpersonate() {
if (GlideImpersonate().isImpersonating()){
current.setAbortAction(true);
gs.addInfoMessage("Transaction canceled due to Impersonation");
}
return;
}
Cheers,
Tai Vu