Verify User and User Session on Laptop Through Servicenow Discovery

manish kale
Tera Guru

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

3 REPLIES 3

Rahul Priyadars
Tera Sage
Tera Sage

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

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

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?

 

RahulPriyadars_0-1686214809584.png

 

 

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

RahulPriyadars_0-1686214545855.png

 

How to Customize/Extend existing  Pattern- Refer this

https://developer.servicenow.com/connect.do#!/event/knowledge19/LAB1542/knowledge19_LAB1542_extendin...

 

Once above is done its very easy to check and trigger notification.

Regards

RP