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

Queries → Last logged-on user report

AI-generated

Summary

Retrieve the 'Last logged-on user' report from NinjaOne, optionally paginating through all results and applying filters like device, cursor, and page size.

Inputs

  • returnAll — Boolean to specify whether to return all pages of results or only a single page.
  • additionalFields — Optional filters including device filter (df), cursor for cursor-based pagination, and page size to limit records per page.
  • options — Extra request configuration such as custom JSON body (overrides other inputs), custom HTTP headers, query string filters, batching settings, debug output, pagination handling (offset, cursor, or URL based), and request timeout in milliseconds.

Output shape

a list of items representing the last logged-on users report, potentially paginated based on options.

If 'returnAll' is false, only one page of results is returned; if true, all pages are fetched according to the pagination settings. Supports different pagination modes including offset-based, cursor-based, and next-URL link. Debug mode adds detailed request data in output for troubleshooting.

Links

Discussion