ThreatLocker Storage Policies
storage_policiesQuery ThreatLocker storage control policies to list or retrieve details on file and folder access rules, controlling which applications can read, write, or execute from specific storage locations.
Instructions
Query ThreatLocker storage control policies.
Storage policies define rules for file and folder access on endpoints — controlling which applications can read, write, or execute from specific storage locations (local drives, USB devices, network shares).
Common workflows:
List all storage policies: action=list
Search by name: action=list, searchText="USB"
Filter by computer group: action=list, appliesToId="group-id"
Get policy details by ID: action=get, storagePolicyId="..."
Pitfalls:
Read-only tool: storage policy creation/editing is not available via the public API (no documented write endpoint).
Storage policies are first-match top-down — permits must be ordered above denies.
Permissions: View Storage Control Policies, Edit Storage Control Policies. Pagination: list action is paginated (use fetchAllPages=true to auto-fetch all pages). Key response fields: storagePolicyId, name, policyType, osType, computerGroupName, isEnabled.
Related tools: policies (application control policies), computer_groups (where policy applies), applications (what the policy permits)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | get=single policy by ID, list=search/list storage policies | |
| osType | No | OS type: 0=All, 1=Windows, 2=macOS, 3=Linux, 5=Windows XP | |
| pageSize | No | Results per page (default: 25, max: 500) | |
| pageNumber | No | Page number (default: 1) | |
| policyType | No | Filter by policy type (integer). Note: valid values are not documented in the public API/KB; pass only if you know the value from the portal. | |
| searchText | No | Search text to filter policies | |
| appliesToId | No | Computer group GUID to filter by. Find via computer_groups first. | |
| fetchAllPages | No | Fetch all pages automatically (max 10 pages). Default: false (single page). | |
| response_format | No | Output format: markdown (default, human-readable) or json (structured) | markdown |
| storagePolicyId | No | Storage policy GUID (required for get). Find via list action first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Response data — shape varies by action | |
| error | No | ||
| success | Yes | ||
| pagination | No |