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

CustomTabs → Get Organization

AI-generated

Summary

Retrieve the organizational hierarchy data associated with a specific custom tab by providing its Tab Id.

Inputs

  • tabId (required) — The numeric identifier of the custom tab for which to fetch the organization hierarchy.
  • returnAll — Boolean flag to choose whether to return all results across paginated responses or just a single page.
  • options — Optional parameters including custom request body JSON, custom HTTP headers, query parameters for filtering, batching settings for handling multiple requests, debug flag to include request details in the output, pagination configuration to control how multiple pages of results are fetched, and request timeout duration.

Output shape

a JSON object representing the organization's hierarchical data for the specified custom tab, potentially including paginated results depending on configuration.

If pagination is enabled and returnAll is true, the output includes all pages concatenated. Enabling debug includes extra information about the HTTP requests made. Optional parameters in 'options' may modify the request body, headers, and query string.

Examples

Example 1: Fetch the organization hierarchy for tab ID 123, returning all available pages.

Set 'Tab Id' to 123, 'Return All' to true.

Links

Discussion