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

# Create User

Create a Torii user. <p><ul><li>Torii users can log in to Torii and/or the App Catalog and/or the Browser Extension.</li><li>The user's app permissions are determined according to the user's role, represented by the <code>userType</code> attribute.</li><li>The user can be created as <b>Active</b> or <b>Inactive</b>, according to the <code>active</code> attribute.</li><li>Only active users can log in to Torii apps.</li></ul></p>
<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": "SCIM",
      "description": "<p>Torii API provides a System for Cross-domain Identity Management (SCIM) 2.0 REST API for managing users.</p>\n                          <p>SCIM API endpoint: <code>https://api.toriihq.com/v1.0/scim/v2</code></p>\n                          <p>Example:</p>\n                          <p>Get Users:</p>\n      <code class=\"hljs\">curl -H \"Authorization: Bearer API_KEY\" https://api.toriihq.com/v1.0/scim/v2/Users</code>\n      <small>Enable SCIM API in the <a href=\"https://app.toriihq.com/team/settings/security\">Security</a> page and generate an API key from the <a href=\"https://app.toriihq.com/team/settings/apiAccess\" target=\"_blank\">API Access</a> page. <br>See <a href=\"https://support.toriihq.com/hc/en-us/articles/9183460072347\">SCIM help article</a> for more information.</small>\n        "
    }
  ],
  "openapi": "3.0.0",
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    },
    "schemas": {
      "Model91": {
        "type": "string",
        "enum": [
          "urn:ietf:params:scim:schemas:core:2.0:User"
        ]
      },
      "Model92": {
        "type": "array",
        "description": "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.",
        "example": [
          "urn:ietf:params:scim:schemas:core:2.0:User"
        ],
        "items": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/Model91"
            },
            {
              "type": "string"
            }
          ]
        }
      },
      "SCIMNameSchema": {
        "type": "object",
        "description": "The components of the user's real name.",
        "properties": {
          "familyName": {
            "type": "string",
            "description": "The user's family name.",
            "example": "Stark",
            "nullable": true
          },
          "givenName": {
            "type": "string",
            "description": "The user's given name.",
            "example": "Tony",
            "nullable": true
          }
        }
      },
      "SCIMEmail": {
        "type": "object",
        "properties": {
          "primary": {
            "type": "boolean",
            "example": true
          },
          "value": {
            "type": "string",
            "example": "tony@stark.com",
            "x-convert": {
              "case": "lower"
            }
          }
        },
        "required": [
          "value"
        ]
      },
      "SCIMEmailsSchema": {
        "type": "array",
        "description": "The user's email addresses. Cannot be changed after the user is created",
        "items": {
          "$ref": "#/components/schemas/SCIMEmail"
        }
      },
      "SCIMMetaSchema": {
        "type": "object",
        "properties": {
          "created": {
            "type": "string",
            "description": "The user's creation time.",
            "example": "2022-01-01T00:00:00.000Z"
          }
        }
      },
      "SCIMUser": {
        "type": "object",
        "description": "SCIM user schema",
        "properties": {
          "schemas": {
            "$ref": "#/components/schemas/Model92"
          },
          "id": {
            "type": "string",
            "description": "The user's ID in Torii",
            "example": "1234"
          },
          "userName": {
            "type": "string",
            "description": "Must be an email address. Cannot be changed after the user is created.",
            "example": "tony@stark.com"
          },
          "name": {
            "$ref": "#/components/schemas/SCIMNameSchema"
          },
          "active": {
            "type": "boolean",
            "description": "A Boolean value indicating the User's administrative status.",
            "example": true
          },
          "emails": {
            "$ref": "#/components/schemas/SCIMEmailsSchema"
          },
          "userType": {
            "type": "string",
            "description": "The role of the user in Torii.",
            "example": "Admin"
          },
          "meta": {
            "$ref": "#/components/schemas/SCIMMetaSchema"
          }
        },
        "required": [
          "schemas"
        ]
      },
      "Model127": {
        "type": "string",
        "enum": [
          "urn:ietf:params:scim:schemas:core:2.0:User"
        ]
      },
      "Model128": {
        "type": "array",
        "description": "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.",
        "example": [
          "urn:ietf:params:scim:schemas:core:2.0:User"
        ],
        "items": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/Model127"
            },
            {
              "type": "string"
            }
          ]
        }
      },
      "SCIMCreateUser": {
        "type": "object",
        "description": "SCIM create user body request schema.",
        "properties": {
          "schemas": {
            "$ref": "#/components/schemas/Model128"
          },
          "name": {
            "$ref": "#/components/schemas/SCIMNameSchema"
          },
          "userName": {
            "type": "string",
            "description": "userName must be a valid email address with a valid domain.",
            "example": "tony@stark.com",
            "x-format": {
              "email": {
                "tlds": false
              }
            }
          },
          "userType": {
            "type": "string",
            "description": "The role of the user in Torii.<br>Must be a valid Torii role name or custom role name (e.g. \"Admin\", \"Read Only\", etc.)",
            "example": "Admin",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "example": "true"
          }
        },
        "required": [
          "schemas",
          "userName"
        ]
      }
    }
  },
  "paths": {
    "/scim/v2/Users": {
      "post": {
        "summary": "Create User",
        "operationId": "postScimV2Users",
        "description": "Create a Torii user. <p><ul><li>Torii users can log in to Torii and/or the App Catalog and/or the Browser Extension.</li><li>The user's app permissions are determined according to the user's role, represented by the <code>userType</code> attribute.</li><li>The user can be created as <b>Active</b> or <b>Inactive</b>, according to the <code>active</code> attribute.</li><li>Only active users can log in to Torii apps.</li></ul></p>\n<p><ul><li>Rate limit: 200 requests per minute</li></ul></p>",
        "tags": [
          "SCIM"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SCIMCreateUser"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "SCIM user schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SCIMUser"
                }
              }
            }
          }
        }
      }
    }
  }
}
```