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 → Set organization access permissions for a role

AI-generated

Summary

Set organization access permissions for a specified user role by sending a PATCH request to the NinjaOne API with role ID and permission items.

Inputs

  • Role Id (required) — Numeric identifier of the user role to update permissions for.
  • Items (required) — A JSON array representing the organization access permissions to assign to the role.
  • Options — Optional settings including custom request body fields, custom HTTP headers, query parameters, batching configuration, debugging output, pagination controls, and request timeout.

Output shape

a single JSON object representing the API response from updating the role's organization access permissions

The output includes the NinjaOne API response JSON for the PATCH operation. If debugging is enabled, the output also contains the actual URL, headers, query parameters, and body sent with the request for troubleshooting.

Examples

Example 1: Update organization permissions for a specific role with a precise set of permission items.

Set 'Role Id' to the target role's ID, provide the permission details as a JSON array in 'Items', and optionally customize the request with options like additional headers or debugging.

Links

Discussion