---
title: "Update User"
method: PUT
path: "/users/update/{user_id}"
tags: ["Identity"]
---

# Update User

`PUT /users/update/{user_id}`

Updates a user and their role assignment in multiple tenants.

## Request body

- UserUpdateRequest
  - `email` string, required — Email ID of the user. This wil be unique across all the CoreStack accounts
  - `first_name` string — First Name of the user. It can be only alphanumeric
  - `last_name` string — Last Name of the user. It can be only alphanumeric
  - `timezone_id` string, required — ID of the timezone to be set for th user. For a valid list of timezone values to use, please refer https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  - `role_assignment` UpdateRoleAssignment[] — List of roles assignments for the user. The same user can be assigned different roles in different tenants
    - `tenant_id` string — ID of the tenant within the CoreStack account
    - `role_names` string[] — Name of the Roles to be assigned to the user under a tenant
  - `mobile` string — Mobile number of the user.
  - `preferred_language` 'en' | 'ja' — Preferred language of the user.

## Response `200`

Success

- UserUpdateResponse
  - `user_id` string, required — ID of the updated User

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.dev/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/revisions/bf2cdf20826d/schema)
