Get all users
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
username | string | via search string | |||
firstname | string | via search string | |||
lastname | string | via search string | |||
status | string | via search string | |||
employeeid | string | via search string | |||
usertype | string | via search string |
http://devsandbox.targetsolutions.com/v1/users
http://devsandbox.targetsolutions.com/v1/users?q={"username":"random username","firstname":"random firstname","lastname":"random lastname","status":"random status","employeeid":"random employeeid","usertype":"random usertype"}
GET /users HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: DDtZMfvE+H+V2B5xH0FN1Q==
Cache-Control: no-cache
{ "users":[ { "links":{ "credentials":"http://devsandbox.targetsolutions.com/v1/users/714479/credentials", "resourcelink":"http://devsandbox.targetsolutions.com/v1/users/714479", "access/modules":"http://devsandbox.targetsolutions.com/v1/users/714479/access/modules", "groups":"http://devsandbox.targetsolutions.com/v1/users/714479/groups", "access/groups":"http://devsandbox.targetsolutions.com/v1/users/714479/access/groups" }, "firstname":"Not", "usertype":"Supervisor", "siteid":12, "employeeid":"", "email":[ ], "username":"sadf", "status":"Active", "lastname":12, "userid":714479 } ], "pagination":{ "next":"http://devsandbox.targetsolutions.com/v1/users?startrow=2&limit=1" } }
{ "httpcode":200, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901", "developermessage":"The request returned zero results.", "statuscode":901, "status":"ok" }
{ "httpcode":401, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/800", "developermessage":"A request was made to a resource that you do not have ownership of.", "statuscode":800, "status":"access denied" }