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

Management → Update device access for end user

AI-generated

Summary

Update the device access permissions for a specified end user by adding or removing device IDs associated with their account.

Inputs

  • id (required) — The unique identifier of the end user whose device access is being updated.
  • Additional Fields — Optional fields to modify device access, including adding device IDs via 'addDeviceIds' or removing device IDs via 'removeDeviceIds'. Both expect JSON arrays of device IDs.

Output shape

a JSON object representing the updated device access state for the specified end user returned from the PATCH /v2/user/end-user/{id}/device-access API endpoint

Supports optional custom request body fields, headers, query parameters, batching, pagination settings, and debug information. The customBody JSON is deep-merged with specified fields, with custom body taking precedence.

Links

Discussion