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

# Get User By ID

Returns the user associated with the user's ID.
<p><ul><li>Rate limit: 400 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"
        ]
      }
    }
  },
  "paths": {
    "/scim/v2/Users/{idUser}": {
      "get": {
        "summary": "Get User By ID",
        "operationId": "getScimV2UsersIduser",
        "description": "Returns the user associated with the user's ID.\n<p><ul><li>Rate limit: 400 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": [
          "SCIM"
        ],
        "responses": {
          "200": {
            "description": "SCIM user schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SCIMUser"
                }
              }
            }
          }
        }
      }
    }
  }
}
```