Where to find login information of "Web services Access Only" users ?

sieusaopolo15
Giga Sage

In ServiceNow there is a table called User Login Histories (sys_user_login_history) but this table doesn't contain API users login interaction with the instance. Is there any table contains login information of these API users ?

3 REPLIES 3

Sarthak Kashyap
Kilo Sage

Hi @sieusaopolo15 ,

 

Can you please navigate to below url

yourInstance.service-now.com/api/now/ui/user/current_user

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,
Sarthak

 

 

ChrisBurks
Giga Sage

There is a table called syslog_transaction that will give some information

All > System Log > Transactions

 

The screenshot shows what information there is on the form.   Of course the "Created by" would contain the user account used with that web service call into the system.

ChrisBurks_0-1762700256097.png

 

kaushal_snow
Giga Sage

@sieusaopolo15 ,

 

In Servicenow there is no built in table that reliably captures login events for Web services access only users in the same way as the interactive user login history table (sys_user_login_history)........The v_user_session view is documented to hold session details via REST API usage...... If you need to audit API user login/usage you’ll need to enable additional logging (such as via the Transaction Log syslog_transaction, or a custom extension that triggers on the web service methods) and correlate user field names marked Web service access only on sys_user......

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/