REST API to list the users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2018 10:31 PM
Is there any REST API to list out the total users present?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2018 10:52 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2018 11:03 PM
I think that is same as listing down the users...Is there any way to pass the username in query and validate it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2018 11:17 PM
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>