ThreatLocker Computer Groups
computer_groupsRetrieve and inspect computer groups to organize computers and define policy scope. Filter by OS, organization, or install key, and get dropdown lists for UI selection and approval workflows.
Instructions
List and inspect ThreatLocker computer groups.
Computer groups organize computers and define policy scope. Policies are applied to groups, not individual computers. The "global" group (includeGlobal=true) permits applications across all groups.
Common workflows:
Get all groups with computers: action=list, includeAllComputers=true
Get group dropdown for UI/selection: action=dropdown
Get groups across organizations (MSP): action=dropdown_with_org, includeAvailableOrganizations=true
Filter by OS type: osType=1 (Windows), 2 (macOS), 3 (Linux)
Get groups for approval workflow: action=get_for_permit
Get group by install key: action=get_by_install_key, installKey="..."
Permissions: Super Admin (for list), Edit Computers, Edit Computer Groups, View Computers. Key response fields: computerGroupId, name, osType, computerCount, organizationId.
Related tools: computers (list computers in groups), policies (policies applied to groups)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | list=full details with computers, dropdown=simple list for selection, dropdown_with_org=includes parent/child orgs, get_for_permit=groups for approval workflow, get_by_install_key=get group by 24-char install key | |
| osType | No | OS type: 0=All, 1=Windows, 2=macOS, 3=Linux, 5=Windows XP | |
| installKey | No | 24-character install key (required for get_by_install_key) | |
| hideGlobals | No | Hide global groups (dropdown action) | |
| fetchAllPages | No | Fetch all pages automatically (max 10 pages). Default: false (single page). | |
| includeGlobal | No | Include global application-permitting group (list action) | |
| computerGroupId | No | Filter by specific computer group GUID (list action) | |
| response_format | No | Output format: markdown (default, human-readable) or json (structured) | markdown |
| includeIngestors | No | Include ingestors (list action) | |
| includeDnsServers | No | Include DNS servers (list action) | |
| includeAllPolicies | No | Include all policies attached to groups (list action) | |
| includeAllComputers | No | Include all computers in response (list action) | |
| includeParentGroups | No | Show parent computer groups (list action) | |
| includeAccessDevices | No | Include access devices (list action) | |
| includeOrganizations | No | Include accessible organizations (list action) | |
| includeLoggedInObjects | No | Add contextual path labels (list action) | |
| includeRemovedComputers | No | Include removed computers (list action) | |
| includeAvailableOrganizations | No | Include child and parent organizations (dropdown_with_org action) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Response data — shape varies by action | |
| error | No | ||
| success | Yes | ||
| pagination | No |