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 → Add user role members

AI-generated

Summary

Add multiple user members to a specified user role by role ID, sending their details in an array within the request body to update the user role's membership.

Inputs

  • Role Id (required) — The unique identifier of the user role to which members will be added.
  • Items (required) — A JSON array containing the details of the user members to add to the specified role.
  • Options — Optional parameters to customize the request, including sending a custom JSON body that can override other fields, adding custom HTTP headers, query filters, batching settings (items per batch and batch interval), debug mode to output request details, pagination settings, and request timeout duration.

Output shape

a JSON object containing the API response for the add-members PATCH request

The response includes the result of the add-members operation on the specified user role. Debug output is optionally included if the debug option is enabled. Pagination and batching apply to input item processing if used.

Links

Discussion