---
title: "Create User"
method: POST
path: "/scim/v2/Users"
tags: ["scim"]
---

# Create User

`POST /scim/v2/Users`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/scim/v2/Users`
- Auth: HTTP bearer

Provision a user, linking an existing account rather than conflicting.

## Request body

- ScimUserRequest: An inbound User resource on POST or PUT. ``userName`` is the only attribute Tracecat stores as identity; the display and name attributes are accepted so providers do not see a validation failure, but nothing here maps onto a Tracecat column.
  - `schemas` string[]
  - `userName` string, required
  - `externalId` string, nullable
  - `active` boolean
  - `name` ScimName: A user's name components as pushed by the provider.
    - `givenName` string, nullable
    - `familyName` string, nullable
    - `formatted` string, nullable
  - `displayName` string, nullable
  - `emails` ScimEmail[]
    - `value` string, nullable
    - `primary` boolean, nullable
    - `type` string, nullable

## Response `201`

Successful Response

- ScimUserResource: A User resource as returned to the provider.
  - `schemas` string[]
  - `id` string, required
  - `userName` string, required
  - `externalId` string, nullable
  - `active` boolean
  - `name` ScimName: A user's name components as pushed by the provider.
    - `givenName` string, nullable
    - `familyName` string, nullable
    - `formatted` string, nullable
  - `displayName` string, nullable
  - `emails` ScimEmail[]
    - `value` string, nullable
    - `primary` boolean, nullable
    - `type` string, nullable
  - `meta` ScimMeta: Resource metadata. Only the fields Okta reads are emitted.
    - `resourceType` string, required
    - `created` string, date-time, nullable
    - `lastModified` string, date-time, nullable
    - `location` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
