---
title: "Replace User Roles"
method: PATCH
path: "/v1/organization-management/users/{user_id}/roles"
tags: ["Users"]
---

# Replace User Roles

`PATCH /v1/organization-management/users/{user_id}/roles`

## Request

- Base URL: `https://api.sandbox.usenash.com`
- URL: `https://api.sandbox.usenash.com/v1/organization-management/users/{user_id}/roles`
- Auth: none declared
- TypeScript: <https://skmtc.dev/usenash/apis/nash-api/docs/v1/organization-management/users/:user_id/roles/patch.ts> (a function with typed inputs; its response is checked against the schema)

Replace the user's role set inside the calling org with exactly the supplied role ids. Roles in other orgs are unaffected.

## Path parameters

- `user_id` string, required: The Nash user id (``usr_…``).

## Request body

- RoleIds
  - `roleIds` string[], required

## Response `200`

OK

- MutationResult: Standard success response for role mutation endpoints.
  - `success` boolean

## Other responses

- `422`: Unprocessable Content

## Changes

- **2026-11-03** `e3713837c5c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usenash/apis/nash-api/changes/v1/organization-management/users/:user_id/roles/patch.md)

---

[API](https://skmtc.dev/usenash/apis/nash-api.md) - [All operations](https://skmtc.dev/usenash/apis/nash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usenash/apis/nash-api/revisions/e3713837c5c9?raw)
