Get all features you can give a user access to
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
siteid | numeric | REQUIRED, Passed via URI | |||
functionname | string | via search string | |||
modulename | string | via search string |
http://devsandbox.targetsolutions.com/v1/sites/{siteid}/access/modules
http://devsandbox.targetsolutions.com/v1/sites/{siteid}/access/modules?q={"functionname":"random functionname","modulename":"random modulename"}
GET /sites/{siteid}/access/modules HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: QjqIJQyVikEm6AAm+3DwQg==
Cache-Control: no-cache
{ "modules":[ { "links":{ "users":"http://devsandbox.targetsolutions.com/v1/sites/20629/access/modules/38/users/", "resourcelink":"http://devsandbox.targetsolutions.com/v1/sites/20629/access/modules/38" }, "accessID":38, "moduleName":"Activities Builder", "functionName":"Activities Builder" }, { "links":{ "users":"http://devsandbox.targetsolutions.com/v1/sites/20629/access/modules/16/users/", "resourcelink":"http://devsandbox.targetsolutions.com/v1/sites/20629/access/modules/16" }, "accessID":16, "moduleName":"Assignments", "functionName":"Create New Assignments" } ]
{ "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" }