Admin/GetGroupPermissionList
This method returns a job and task index pair list for which the group has permissions.
URI
http://{IP address}:{Port}/ServicewTM.svc/Admin/GetGroupPermissionList/{application}/{groupInd}
The
URI for this method includes the following path elements:
| Name | Type | Required? | Description |
|---|---|---|---|
| {application} | String | Yes | The name of the application for which the permissions list is to be returned. |
| {groupInd} | String | Yes | The index for a group is the value in the gr_ind column of the tmgroup table in the Admin database. |
Request content
The request for this method contains no content.
Response content
The response contains the job and task index pair list for which the group has permission. If -1 is returned for the task and job, the object has permission to all job and task pairs.
| Name | Description |
|---|---|
| Job | The value of jb_ind from the job table of the Admin database. |
| Task | The value of ts_ind from the tasks table of the Admin database. |
This method also returns one of the following response codes.
| Response Code | Description |
|---|---|
| 200 OK | The request was successful. |
| 400 Bad Request | The request was not understood by the service because of malformed syntax. |
| 401 Unauthorized | The request requires user authentication. If the request included valid credentials, the 401 response indicates that authorization was refused for those credentials. |
| 405 Method Not Allowed | The method that is specified in the Request-Line is not allowed for the resource that is identified by the Request-URI. The response must include an Allow header that contains a list of valid methods for the requested resource. |
| 500 Internal Error | An unexpected condition was encountered that prevented the service from fulfilling the request. |
GET GetGroupPermissionList method JSON response example
{ "Permissions":[{ "Job":"10", "Task":"12" }]}
{ "Permissions":[{ "Job":"10", "Task":"14" }]}
{ "Permissions":[{ "Job":"10", "Task":"15" }]}
{ "Permissions":[{ "Job":"10", "Task":"16" }]}
GET GetGroupPermissionList method XML response example
<PermissionList><Permissions>
<PermissionList.JobTaskPair><Job>10</Job><Task>12</Task></PermissionList.JobTaskPair>
<PermissionList.JobTaskPair><Job>10</Job><Task>14</Task></PermissionList.JobTaskPair>
<PermissionList.JobTaskPair><Job>10</Job><Task>15</Task></PermissionList.JobTaskPair>
<PermissionList.JobTaskPair><Job>10</Job><Task>16</Task></PermissionList.JobTaskPair>
</Permissions></PermissionList>