> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace User

> Replace the login, provider identifier, and active state of a user.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json put /scim/v2/Users/{resource_id}
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /scim/v2/Users/{resource_id}:
    put:
      tags:
        - scim
      summary: Replace User
      description: Replace the login, provider identifier, and active state of a user.
      operationId: scim-replace_user
      parameters:
        - name: resource_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Resource Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScimUserRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/scim+json:
              schema:
                $ref: '#/components/schemas/ScimUserResource'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ScimConnectionBearer: []
components:
  schemas:
    ScimUserRequest:
      properties:
        schemas:
          items:
            type: string
          type: array
          title: Schemas
        userName:
          type: string
          maxLength: 320
          title: Username
        externalId:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Externalid
        active:
          type: boolean
          title: Active
          default: true
        name:
          anyOf:
            - $ref: '#/components/schemas/ScimName'
            - type: 'null'
        displayName:
          anyOf:
            - type: string
            - type: 'null'
          title: Displayname
        emails:
          items:
            $ref: '#/components/schemas/ScimEmail'
          type: array
          title: Emails
      type: object
      required:
        - userName
      title: ScimUserRequest
      description: >-
        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.
    ScimUserResource:
      properties:
        schemas:
          items:
            type: string
          type: array
          title: Schemas
        id:
          type: string
          title: Id
        userName:
          type: string
          title: Username
        externalId:
          anyOf:
            - type: string
            - type: 'null'
          title: Externalid
        active:
          type: boolean
          title: Active
          default: true
        name:
          anyOf:
            - $ref: '#/components/schemas/ScimName'
            - type: 'null'
        displayName:
          anyOf:
            - type: string
            - type: 'null'
          title: Displayname
        emails:
          items:
            $ref: '#/components/schemas/ScimEmail'
          type: array
          title: Emails
        meta:
          anyOf:
            - $ref: '#/components/schemas/ScimMeta'
            - type: 'null'
      type: object
      required:
        - id
        - userName
      title: ScimUserResource
      description: A User resource as returned to the provider.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScimName:
      properties:
        givenName:
          anyOf:
            - type: string
            - type: 'null'
          title: Givenname
        familyName:
          anyOf:
            - type: string
            - type: 'null'
          title: Familyname
        formatted:
          anyOf:
            - type: string
            - type: 'null'
          title: Formatted
      type: object
      title: ScimName
      description: A user's name components as pushed by the provider.
    ScimEmail:
      properties:
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
        primary:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Primary
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
      type: object
      title: ScimEmail
      description: One entry of a user's multi-valued email attribute.
    ScimMeta:
      properties:
        resourceType:
          type: string
          title: Resourcetype
        created:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created
        lastModified:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Lastmodified
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
      type: object
      required:
        - resourceType
      title: ScimMeta
      description: Resource metadata. Only the fields Okta reads are emitted.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScimConnectionBearer:
      type: http
      description: Tracecat SCIM connection token.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.