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

Groups → Group members

AI-generated

Summary

Retrieve the device IDs associated with a specific group by providing the group's ID, optionally handling pagination and customizing the request.

Inputs

  • id (required) — The numeric identifier of the group whose device IDs are to be fetched.
  • returnAll — Boolean flag to either retrieve all available results by paginating through responses or to fetch only a single page of results.
  • options — A collection of optional parameters including custom request body JSON overrides, additional HTTP headers, query filters for refining results, batching controls to group requests and pause between batches, debug flag to output raw request details, pagination configuration such as mode (offset, cursor, URL), parameter names, page sizes, cursor paths, and maximum pages to fetch, as well as request timeouts.

Output shape

a JSON object containing an array of device IDs associated with the specified group

The response data structure depends on the API's pagination and data path settings; if pagination is enabled with 'returnAll', multiple pages of device IDs are combined into the output. If 'debug' is enabled, the output includes a debug entry showing the actual HTTP request details. Errors or unexpected responses will follow standard node error handling.

Links

Discussion