---
updatedAt: 2026-05-27T05:24:21.000Z
agentTools:
  projectIndex: https://developers.toriihq.com/llms.txt
---

# Update user

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>

# OpenAPI definition

```json
{
  "servers": [
    {
      "url": "https://api.toriihq.com/v1.0"
    }
  ],
  "info": {
    "title": "Torii API Documentation",
    "version": "v1.0",
    "description": "The Torii API provides an easy way to integrate your data in Torii with any external system. The API closely follows REST semantics, uses JSON to encode objects, and relies on standard HTTP codes to signal operation outcomes. Torii APIs consist of both proprietary and SCIM 2.0 APIs."
  },
  "x-readme": {
    "explorer-enabled": true
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Users",
      "description": "This is an object representing a user. Users include any user detected by Torii, including all admins in your account."
    }
  ],
  "openapi": "3.0.0",
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    },
    "schemas": {
      "Model18": {
        "type": "string",
        "description": "Lifecycle status",
        "example": "active",
        "enum": [
          "active",
          "offboarding",
          "offboarded"
        ]
      },
      "AdditionalEmails": {
        "type": "array",
        "description": "List of additional emails",
        "items": {
          "type": "string",
          "description": "Email address",
          "example": "tony@stark.com",
          "nullable": true,
          "x-convert": {
            "case": "lower"
          }
        }
      },
      "User": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique user identifier",
            "example": 1000,
            "minimum": 1
          },
          "idOrg": {
            "type": "integer",
            "description": "Unique org identifier",
            "example": 1000,
            "minimum": 1
          },
          "firstName": {
            "type": "string",
            "example": "Tony",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "example": "Stark",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address",
            "example": "tony@stark.com",
            "nullable": true,
            "x-convert": {
              "case": "lower"
            }
          },
          "creationTime": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time",
            "example": "2020-01-01T00:00:00.000Z"
          },
          "idRole": {
            "type": "number",
            "example": 1
          },
          "role": {
            "type": "string",
            "example": "Admin"
          },
          "lifecycleStatus": {
            "$ref": "#/components/schemas/Model18"
          },
          "isDeletedInIdentitySources": {
            "type": "boolean",
            "description": "true if the user has left the organization, false otherwise",
            "example": true
          },
          "isExternal": {
            "type": "boolean",
            "description": "true if the user is external, false otherwise",
            "example": true
          },
          "activeAppsCount": {
            "type": "integer",
            "example": 1
          },
          "additionalEmails": {
            "$ref": "#/components/schemas/AdditionalEmails"
          }
        }
      },
      "Model162": {
        "type": "string",
        "description": "Lifecycle status",
        "example": "active",
        "enum": [
          "active",
          "offboarding",
          "offboarded"
        ]
      },
      "EditableUser": {
        "type": "object",
        "description": "Editable User",
        "properties": {
          "lifecycleStatus": {
            "$ref": "#/components/schemas/Model162"
          }
        },
        "required": [
          "lifecycleStatus"
        ]
      },
      "Model163": {
        "type": "object",
        "description": "User",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }
      }
    }
  },
  "paths": {
    "/users/{idUser}": {
      "put": {
        "summary": "Update user",
        "operationId": "putUsersIduser",
        "description": "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.\n<p><ul><li>Rate limit: 200 requests per minute</li></ul></p>",
        "parameters": [
          {
            "name": "idUser",
            "in": "path",
            "schema": {
              "type": "integer",
              "description": "Unique user identifier",
              "example": 1000,
              "minimum": 1
            },
            "description": "Unique user identifier",
            "required": true
          }
        ],
        "tags": [
          "Users"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditableUser"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "User",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Model163"
                }
              }
            }
          }
        }
      }
    }
  }
}
```