---
title: "Update user"
method: PUT
path: "/users/{idUser}"
tags: ["Users"]
---

# Update user

`PUT /users/{idUser}`

## Request

- Base URL: `https://api.toriihq.com/v1.0`
- URL: `https://api.toriihq.com/v1.0/users/{idUser}`
- Auth: API key in header `Authorization`

Updates the user with fields sent in the request body. Setting lifecycleStatus to offboarded for a user whose offboarding is in progress marks their remaining apps as done and completes their open offboarding tasks.
<p><ul><li>Rate limit: 200 requests per minute</li></ul></p>

## Path parameters

- `idUser` integer, required

## Request body

- EditableUser: Editable User
  - `lifecycleStatus` 'active' | 'offboarding' | 'offboarded', required: Lifecycle status

## Response `200`

User

- Model126: User
  - `user` User
    - `id` integer: Unique user identifier
    - `idOrg` integer: Unique org identifier
    - `firstName` string
    - `lastName` string
    - `email` string: Email address
    - `creationTime` string, date-time: Creation time
    - `idRole` number
    - `role` string
    - `lifecycleStatus` 'active' | 'offboarding' | 'offboarded': Lifecycle status
    - `isDeletedInIdentitySources` boolean: true if the user has left the organization, false otherwise
    - `isExternal` boolean: true if the user is external, false otherwise
    - `activeAppsCount` integer
    - `additionalEmails` string[]: List of additional emails

---

[API](https://skmtc.dev/toriihq/apis/torii-api-documentation.md) - [All operations](https://skmtc.dev/toriihq/apis/torii-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/toriihq/apis/torii-api-documentation/revisions/15fd1512591b?raw)
