Description

Get all users in a profile group

Parameters

Name Type Required Optional Searchable Note
categoryid numeric REQUIRED, Passed via URI
groupid numeric REQUIRED, Passed via URI
firstname string via search string
groupname string via search string
lastname string via search string

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/sites/categories/profile/{categoryid}/groups/{groupid}/users

Example Request with Search String

http://devsandbox.targetsolutions.com/v1/sites/categories/profile/{categoryid}/groups/{groupid}/users?q={"firstname":"random firstname","groupname":"random groupname","lastname":"random lastname"}

Example Header

GET /sites/categories/profile/{categoryid}/groups/{groupid}/users HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: Z8osqir3psbtYLC+ERCACQ==
Cache-Control: no-cache

Possible Results Sets

Results Set

{
  "Users":[
    {
      "links":{
        "resourcelink":"http://devsandbox.targetsolutions.com/v1/users/123"
      },
      "firstname":"Mark",
      "employeeid":"992-33-2525",
      "username":"asdffdaasdffdaasdffdsa",
      "lastname":"Carleson",
      "userid":123
    }
  ],
  "pagination":{
    "next":"http://devsandbox.targetsolutions.com/v1/sites/categories/profile/5468/groups/307414/users?startrow=2&limit=1"
  }
}

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