- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 02:33 AM
There are two instances A and B. When a user submits the request in instance A, they get admin access in instance B(through REST webservice). Admin access is auto revoked(through REST webservice) after 2 hours. However admin access still remains since the user session is active in instance B.
Is there any way to kill the user session ?
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 02:41 AM
Hi,
you want to kill user instance in instance B via some API call?
you can create scripted rest api in instance B of type POST and invoke it from instance A and send the user name via API in JSON request body
in scripted rest api you can use this script to kill user session
GlideSessions.lockOutSessionsInAllNodes('userName');
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 02:41 AM
Hi,
you want to kill user instance in instance B via some API call?
you can create scripted rest api in instance B of type POST and invoke it from instance A and send the user name via API in JSON request body
in scripted rest api you can use this script to kill user session
GlideSessions.lockOutSessionsInAllNodes('userName');
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader