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 → Remove users from user role

AI-generated

Summary

Remove one or more users from a specified user role by providing the role ID and an array of user items to remove.

Inputs

  • Role Id (required) — Numeric identifier of the user role from which to remove users.
  • Items (required) — JSON array containing the user items to be removed from the specified role.
  • Options — Additional optional parameters including custom request body, custom HTTP headers, query filters, batching controls, debug flag, pagination settings, and request timeout.

Output shape

a JSON response object indicating the result of the removal operation

The response will contain the server's confirmation or error message regarding the removal of users from the user role. Debug details can be included in the output if enabled. Pagination and batching options affect how multiple removals are processed.

Examples

Example 1: Remove users from role 123

Set Role Id to 123 and provide a JSON array of user IDs or user objects in Items to remove those users from the role.

Links

Discussion