---
title: "Update User (PUT)"
method: PUT
path: "/scim/v2/Users/{idUser}"
tags: ["SCIM"]
---

# Update User (PUT)

`PUT /scim/v2/Users/{idUser}`

## Request

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

Update Torii user<p><ul><li>Only active users can be updated.</li><li>The user's <code>userName</code> (email address) cannot be updated.</li><li>To deactivate a user, use <code>active: false</code></li><li>Use the <code>POST</code> method to reactivate inactive users.</li><li>If the user is the last admin in the org, you cannot update his role.</li></p>
<p><ul><li>Rate limit: 200 requests per minute</li></ul></p>

## Path parameters

- `idUser` integer, required

## Request body

- SCIMUpdateUser: SCIM update user schema
  - `schemas` Model134[], required: An array of Strings containing URIs that are used to indicate the namespaces of the SCIM schemas that define the attributes present in the current JSON structure.
  - `id` number: The user's ID in Torii
  - `userName` string, required: The user's email address.
  - `userType` string: The role of the user in Torii. The role will not change if this parameter is not passed.<br>Must be a valid Torii role name or custom role name (e.g. "Admin", "Read Only", etc.)
  - `active` boolean: If <b>active: false</b>, the user will be deactivated.

## Response `200`

SCIM user schema

- SCIMUser: SCIM user schema
  - `schemas` Model70[], required: An array of Strings containing URIs that are used to indicate the namespaces of the SCIM schemas that define the attributes present in the current JSON structure.
  - `id` string: The user's ID in Torii
  - `userName` string: Must be an email address. Cannot be changed after the user is created.
  - `name` SCIMNameSchema: The components of the user's real name.
    - `familyName` string: The user's family name.
    - `givenName` string: The user's given name.
  - `active` boolean: A Boolean value indicating the User's administrative status.
  - `emails` SCIMEmail[]: The user's email addresses. Cannot be changed after the user is created
    - `primary` boolean
    - `value` string, required
  - `userType` string: The role of the user in Torii.
  - `meta` SCIMMetaSchema
    - `created` string: The user's creation time.

---

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