NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

System → List organizations

AI-generated

Summary

Retrieve a list of organizations from the NinjaOne system, optionally returning all results or a single page, with support for filtering, pagination, custom headers, and debugging output.

Inputs

  • Return All — Boolean to specify if all organization records should be returned or only a single page.
  • Additional Fields — Optional parameters including Page Size to limit organizations returned, After for pagination with last organization identifier, and Of to filter organizations.
  • Options — Additional optional configurations including sending custom JSON body merged with defaults, adding custom HTTP headers, query-string filters, batching settings for multiple requests, debugging output, pagination configuration (offset-, cursor-, or URL-based), and request timeout in milliseconds.

Output shape

a list of organization records from NinjaOne API

The response contains an array of organization objects as returned from the NinjaOne API. When debugging is enabled, the output includes a debug entry containing request details. Pagination may produce multiple requests internally if Return All is true or pagination settings are used.

Examples

Example 1: Fetch first page of organizations

Return All: false, no additional filters

Example 2: Fetch all organizations with page size 100

Return All: true, Additional Fields > Page Size: 100

Example 3: Fetch organizations with custom header and debug enabled

Options > Custom Headers: add header, Debug: true

Links

Discussion