How to get session timings for logged in users in the instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2022 03:32 AM
How to get user session timings that is for how long has user logged into the instance? any table which captures such information.
Thanks
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2022 03:48 AM
v_user_session table in servicenow to keep all session data of user
Access the table=> go to the Logged in User in User administration and open the record

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2022 03:49 AM
Hi,
'v_user_session' table stores active user sessions.
You can create a scheduled job or business rule on the 'v_user_session' table to check if some of these users has a record for an active session or not. If not - do emit your event and send your notification. Please note that session duration is user defined. If it is for example 24 hours, there will be a record for the logged in user for 24 after they have been active.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2022 03:54 AM
This for current logged in user. I need data for previous session data of previously logged in users as well any table for that?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2022 07:56 PM
Hi,
You have edited your question, as when you asked this question you asked for "current logged in users". don't change questions, better to raise another question.