---
title: "Patch User"
method: PATCH
path: "/scim/v2/Users/{resource_id}"
tags: ["scim"]
---

# Patch User

`PATCH /scim/v2/Users/{resource_id}`

## Request

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

Apply a PatchOp to the login, the provider identifier, or ``active``.

## Path parameters

- `resource_id` string, uuid, required

## Request body

- ScimPatchOp: A PATCH request body.
  - `schemas` string[]
  - `Operations` ScimPatchOperation[], required
    - `op` 'add' | 'remove' | 'replace', required
    - `path` string, nullable
    - `value` unknown

## Response `200`

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)
