REST API to list the users

chatbot
Kilo Explorer

Is there any REST API to list out the total users present?

7 REPLIES 7

Rahul Jain11
Kilo Guru

Before retrieving the user list, you can add the encoded query to the API.

It goes to the "sysparm_query" parameter. For ex: sysparm_query=active-false then your API request URL looks like this

https://yourinstance.service-now.com/api/now/table/sys_user?sysparm_query=active=false

 

Thanks

I think that is same as listing down the users...Is there any way to pass the username in query and validate it

Sure you can pass the user name then your request will look like:

https://yourinstance.service-now.com/api/now/table/sys_user?sysparm_query=user_name=<user to look>