---
title: "Change User Role"
method: POST
path: "/api/v1/admin/user-roles/users/{user_id}/change-role"
tags: ["admin-user-roles"]
---

# Change User Role

`POST /api/v1/admin/user-roles/users/{user_id}/change-role`

## Request

- Base URL: `https://api.ninjavan.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ninjavan.co/api/v1/admin/user-roles/users/{user_id}/change-role`
- Auth: none declared

Change a user's role with auto-transfer protocol.

If the new role's record type groups differ from the old role's,
records owned in the removed groups are auto-transferred to the
user's manager. Blocks with 409 if no manager exists.

Request body: {"new_role_id": int}

## Path parameters

- `user_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ninjavan/apis/salesforce-sales-cloud-replacement.md) - [All operations](https://skmtc.dev/ninjavan/apis/salesforce-sales-cloud-replacement/llms.txt) - [OpenAPI document](https://skmtc.dev/ninjavan/apis/salesforce-sales-cloud-replacement/revisions/5ee04ef63feb?raw)
