Verify User and User Session on Laptop Through Servicenow Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2023 11:00 PM
Hello all,
I have requirement where I need to verify if the user who logs into the computer/laptop is same as the user who is assigned to that respective laptop through servicenow discovery. Also I need to monitor that users login time, logout time and that users session time on that laptop. Moreover, if we find out that the user is different from the user who is assigned to that laptop then as email notification should be sent to that same user that,
'If he/she need a computer for their work, then they can place an order through service catalog and is requested not to use this laptop which is assigned to someone else'
Please let me what should be the appropriate steps. I appreciate your help in advance.
Best Regards,
Manish kale

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2023 11:56 PM
Are you using ACC-V for Discovering Computers/Laptop or Plain Discovery?
To get these Attributes like - Login time/Logouttime/Session time and Who Logs In
You need to do customization in Discovery Pattern .
in ACC-V Assigned To can be Populated OOTB
Add Custom attribute in CMDB Class
Customize Pattern to Capture Data You are looking for
Run Discovery and Populate Fields
Write a Schedule Job to Compare Discovered User VS Assigned TO field and then trigger notification.
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 12:07 AM - edited ‎06-08-2023 12:10 AM
Hello @Rahul Priyadars
Thank you for the reply. We are using the Plain discovery.
I am new to the discovery so I request you if you can provide me with some details like what topics I need to go through to accomplish this and detailed step by step approach for the same.
I really appreciate your help!!
Thanking you in Anticipation!!
MK

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2023 01:56 AM - edited ‎06-08-2023 02:00 AM
Just FYI - Assigned To Field is also populated OOTB so you will always get the latest data. So my question here is with which ASSIGNED TO Field you will compare who is using it?
Custom Attributes like - Login time/Logouttime/Session time need to be added into cmdb_ci_computer Class using class manager
Now u need to Customize Pattern - Windows Os Desktop so it also fetches data for above field.
During pattern customization u need commands/scripts to fetch above info from computer.
To Start with please go thru Pattern - Windows OS - Desktops
How to Customize/Extend existing Pattern- Refer this
Once above is done its very easy to check and trigger notification.
Regards
RP