---
title: "Add user role members"
method: PATCH
path: "/v2/user/role/{roleId}/add-members"
tags: ["management"]
---

# Add user role members

`PATCH /v2/user/role/{roleId}/add-members`

## Request

- Base URL: `https://app.ninjarmm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ninjarmm.com/v2/user/role/{roleId}/add-members`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionKey`
- TypeScript: <https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/docs/v2/user/role/:roleId/add-members/patch.ts> (a function with typed inputs; its response is checked against the schema)

Add members to user role

## Path parameters

- `roleId` integer, required

## Request body

- integer[]

## Response `200`

User role

- object
  - `id` integer: Role identifier
  - `name` string: Role name
  - `type` string: Role type
  - `description` string: Role description
  - `members` object[]: Role members
    - `id` integer: User identifier
    - `email` string: User email
    - `name` string: User full name
    - `source` string: Source of role assignment

## Other responses

- `400`: Several possible validation errors
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Role or members not found

## Changes

- **2026-07-26** `753f26d46650`: 2 breaking, 1 info
  - request body became required
  - removed the media type `*/*` from the request body
  - added the media type `application/json` to the request body
- **2025-12-12** `7c00bdd989ee`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/changes/v2/user/role/:roleId/add-members/patch.md)

---

[API](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0.md) - [All operations](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/ninjarmm/apis/ninjaone-public-api-2-0/revisions/5ce571d1bb71?raw)
