Machine name of logged in User

KJ2
Tera Contributor

Is there a way to get the machine name(fqdn) of the User who is logged into ServiceNow ?

The logged in Users / Transaction Logs all provide a masked IP that is not resolving to anything.

The ultimate objective is to read the machine name from the logged in ServiceNow session and build a system of record that links Machine names with Users.

6 REPLIES 6

Utpal Dutta1
Mega Guru

Hey KJ,

 

You can get IP by the following: https://www.servicenowguru.com/scripting/identifying-client-session-ip-address/

 

Please have a look at the blog and if it works then please mark my answer Correct and Helpful.

 

 

Thanks and Regards:

Utpal Dutta

KJ2
Tera Contributor

Hi Utpal,

This usually provides the public IP which resolves to the ISP only. I require the FQDN. Something that my support team can rely on to RDP into the User's machine.

Regards,

KJ

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

It's difficult to know this. If it were possible, that would be a major security risk.

Possibly because users can access the instance publicly or they can be using NAT in the network from where they are accessing.

Even though you get the IP address of the user it may not be the actual one as they might be in the internal network.

Please check below links for more help

http://stackoverflow.com/questions/922476/how-can-i-read-the-clients-machine-computer-name-from-the-...

http://forums.asp.net/t/1490314.aspx?how+do+get+Client+Machnine+Name+through+Javascript

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hitoshi Ozawa
Giga Sage
Giga Sage

Reading user's machine name isn't possible because that would imply ServiceNow would access the user's pc to gather private information.

If your users are only employees of your organization, you can use discovery to collection information all pc information in the company network. You can then match IP address of the user with the collected information to get the machine name.

 

If you have Active Directory, then you'll also be able to get the machine name and the IP address.