Description

Get a feature a user has access to

Parameters

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

Examples

Example Request

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

Example Header

GET /users/{userid}/access/modules/{accessmoduleid} HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: Cn/Y/AbtjAn4vxDNaVGzJg==
Cache-Control: no-cache

Possible Results Sets

Results Set

{
  "links":{
    "users":"http://devsandbox.targetsolutions.com/v1/sites/12/access/modules/38/users/",
    "resourcelink":"http://devsandbox.targetsolutions.com/v1/sites/12/access/modules/38"
  },
  "accessID":38,
  "moduleName":"Activities Builder",
  "functionName":"Activities Builder"
}

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