---
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

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

---

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