---
title: "Update a user in the application via patch"
method: PATCH
path: "/users/{userId}"
---

# Update a user in the application via patch

`PATCH /users/{userId}`

## Path parameters

- `userId` string, required

## Query parameters

- `api-version` string, required

## Headers

- `If-Match` string

## Request body

- object

## Response `200`

Success

- User — The permission definition.
  - `roles` RoleAssignment[], required — List of role assignments that specify the permissions to access the application.
    - `role` string, required — ID of the role for this role assignment.
    - `organization` string — ID of the organization for this role assignment.

## Other responses

- `default` — An error response received from the IoT Central Service.

---

[API](https://skmtc.net/azure/apis/iotcentral-iotcentral.md) · [All operations](https://skmtc.net/azure/apis/iotcentral-iotcentral/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/iotcentral-iotcentral/revisions/565d8813cbd3/schema)
