Organizations

From wyre-technology/msp-claude-plugins · View interactive version

Organizations is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. The ThreatLocker MSP multi-tenant model: enumerating child organizations, retrieving per-org auth keys, and identifying valid move targets when relocating computers between tenants.

How to use this skill

Skill file

ThreatLocker Organizations

ThreatLocker is built for MSPs and treats each customer as a child

organization beneath the partner organization. The API key you

authenticate with belongs to a parent (partner) org and can see all

of its children. Most fleet-wide reporting and any tenant pivot work

runs through this skill.

Anti-triggers

decides which allow/deny rules apply is the computer group — use

threatlocker-computer-groups.

separate directories that happen to describe the same customer; tenant

onboarding, GDAP, and standards live in cipp-tenants.

API Tools

List Child Organizations

threatlocker_organizations_list_children

Returns the full list of child organizations visible to the

authenticated key — typically organizationId, organizationName,

isPartner, parentOrganizationId, computer counts, and creation

timestamp. This is the first call in nearly every multi-tenant

workflow.

Get Organization Auth Key

threatlocker_organizations_get_auth_key

Retrieves the auth key for a specific child organization. Used

during agent provisioning and when a per-org integration (e.g. a

client-facing dashboard) needs its own scoped credential.

Treat this output like any other secret. Don't paste it into

tickets, chat, or unencrypted notes.

Organizations Eligible for Move

threatlocker_organizations_for_move_computers

Returns the orgs that are valid destinations when relocating a

computer — usually a subset of child orgs filtered by partnership and

permission. Not the same as the full child list.

Key Concepts

Partner vs Customer Org

global computer groups, and parents customer orgs.

computers, org-specific groups, approvals, and Action Log entries.

How Tenant Scoping Works

Three ways to scope a call to a specific tenant:

  1. Set the organizationId header on the HTTP call.
  2. Send childOrganizations: true in a GetByParameters body to

roll across all children at once.

  1. Omit both — the API key's primary org is used.

See api-patterns for header/body details.

Common Workflows

MSP Multi-Tenant Pivot

The fan-out pattern for any per-client report:

  1. threatlocker_organizations_list_children to enumerate.
  2. For each child, scope subsequent calls via the organizationId

header and produce per-tenant numbers.

  1. Or, if the entity supports it, use childOrganizations: true once

and bucket results client-side by organizationId.

Onboarding a New Client Org

When a new customer is added in the ThreatLocker portal:

  1. threatlocker_organizations_list_children and confirm the new

org appears.

  1. threatlocker_organizations_get_auth_key for the new org and

securely transmit the key to the deployment team.

  1. After agent rollout, validate computer count via the computers

skill and confirm at least one Action Log entry per endpoint via

audit-log.

Moving Computers Between Orgs

This happens when a client splits, merges, or you discover a computer

was registered to the wrong tenant:

  1. threatlocker_organizations_for_move_computers to confirm the

target org is move-eligible.

  1. Issue the move via the appropriate computer endpoint (the

ThreatLocker portal also exposes this in the UI).

  1. Re-pull the computer with threatlocker_computers_get and confirm

the new organizationId and that the computerGroup reset to

the destination org's default.

Per-Tenant Approval Queue Audit

  1. List children.
  2. For each, set organizationId header and call

threatlocker_approvals_pending_count.

  1. Output a per-tenant pending count to spot the org generating the

most queue pressure (often a sign of policy mode mismatch or a

newly onboarded client still in baseline).

Edge Cases

hidden. The list endpoint may include a flag; ignore those for

fleet reports.

work until rotated. Don't assume the key in your records is

current; pull fresh when in doubt.

partner relationship. If an org isn't in the result, the source

org's parent doesn't have permission to move into it.

Best Practices

multi-tenant reports so a reader knows which client a number

refers to.

tickets) and at rest.

confirm post-move state.

Related Skills

and childOrganizations body flag

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.