Description

Get a user

Parameters

Name Type Required Optional Searchable Note
userid numeric REQUIRED, Passed via URI

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/users/{userid}

Example Header

GET /users/{userid} HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: WmpF6qRbGxI1xsYOyXSojg==
Cache-Control: no-cache

Possible Results Sets

Results Set

{
  "links":{
    "credentials":"http://devsandbox.targetsolutions.com/v1/users/484703/credentials",
    "acccss/modules":"http://devsandbox.targetsolutions.com/v1/users/484703/access/modules",
    "resourcelink":"http://devsandbox.targetsolutions.com/v1/users/484703",
    "groups":"http://devsandbox.targetsolutions.com/v1/users/484703/groups",
    "access/groups":"http://devsandbox.targetsolutions.com/v1/users/484703/access/groups"
  },
  "firstname":"2sd32a",
  "employeeid":"2sd32a",
  "email":[
    
  ],
  "username":"2sd32a@2sd32.com",
  "status":"Expired",
  "lastname":"2sd32a",
  "userid":484703
}

No Results Set

{
  "httpcode":200,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901",
  "developermessage":"The request returned zero results.",
  "statuscode":901,
  "status":"ok"
}

Access Denied Set

{
  "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"
}