A MoogDb v2 method that returns the shared access for a tool.
Method getToolShares
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| Number | Yes | ID of the tool that you want to retrieve its shared access for. |
Method getToolShares
returns the following response:
Type | Description |
---|---|
Object | A Javascript object containing the tool ID, the domain, and an array of all the domain IDs that can access the tool. |
The following examples demonstrate typical use of method getToolShares
:
Example request to retrieve all the domain IDs that have access to tool 15 :
var actions = moogdb.getToolShares(15);
Example response returning that tool ID 15 can be accessed by team ID 3:
{
"tool_id": 15,
"domain_ids": [3],
"domain": "team"
}