Description

Get a user's profile group

Parameters

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

Examples

Example Request

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

Example Header

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

Possible Results Sets

Results Set

{
  "links":{
    "users":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/profile/5468/groups/307414/users",
    "resourcelink":"http://devsandbox.targetsolutions.com/v1/sites/12/categories/profile/5468/groups/307414"
  },
  "usercount":1,
  "groupid":307414,
  "siteid":12,
  "categoryid":5468,
  "groupname":"Dave's Group 2020"
}

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