Skip to main content

Create a User

POST 

/scim/v2/sso/:connection_name/Users

General Availability

Make a request to create a user.

Request

Responses

Created

Response Headers
    Location

    The URI of the created User resource.

    X-Request-Id

    The unique identifier for the API request.

    X-RateLimit-Limit

    The maximum number of requests you're permitted to make per time period.

    X-RateLimit-Remaining

    The number of requests remaining in the current rate limit window.

    X-RateLimit-Reset

    The relative time in seconds until the current rate-limit window resets.

    Important: This differs from Github and Twitter's same-named header which uses UTC epoch seconds. We use relative time to avoid client/server time synchronization issues.

OpenAPI definition (YAML)
paths:
  /scim/v2/sso/{connection_name}/Users:
    post:
      requestBody:
        content:
          application/scim+json:
            schema:
              type: object
              required:
              - schemas
              - userName
              properties:
                schemas:
                  type: array
                  description: The SCIM schema.
                  items:
                    type: string
                    example: urn:ietf:params:scim:schemas:core:2.0:User
                userName:
                  type: string
                  description: 'The user''s email address, which serves as their unique identifier in
                    Confluent Cloud.

                    '
                  example: marty.mcfly@example.com
                name:
                  description: The user's full name.
                  type: object
                  properties:
                    givenName:
                      type: string
                      description: The user's first name.
                      example: Marty
                    familyName:
                      type: string
                      description: The user's last name.
                      example: McFly
                  title: scim.v2.Name
      x-lifecycle-stage: General Availability
      x-self-access: true
      operationId: createScimV2User
      description: '[![General Availability](https://img.shields.io/badge/Lifecycle%20Stage-General%20Availability-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)


        Make a request to create a user.'
      parameters:
      - name: connection_name
        in: path
        required: true
        schema:
          type: string
        description: The Connection Name
      tags:
      - Users (scim/v2)
      security:
      - cloud-api-key: []
      - confluent-sts-access-token: []
      responses:
        '201':
          description: Created
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Represents a user account in Confluent Cloud managed through SCIM protocol.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema.
                    items:
                      type: string
                      example: urn:ietf:params:scim:schemas:core:2.0:User
                  id:
                    type: string
                    maxLength: 255
                    description: Unique identifier for the User. Automatically assigned by Confluent Cloud.
                    readOnly: true
                    example: u-12345
                  userName:
                    type: string
                    description: 'The user''s email address, which serves as their unique identifier in
                      Confluent Cloud.

                      '
                    example: marty.mcfly@example.com
                  name:
                    type: object
                    description: The user's full name.
                    allOf:
                    - description: The user's full name.
                      type: object
                      properties:
                        givenName:
                          type: string
                          description: The user's first name.
                          example: Marty
                        familyName:
                          type: string
                          description: The user's last name.
                          example: McFly
                      title: scim.v2.Name
                  active:
                    type: boolean
                    description: 'Indicates whether the user account is active and can access Confluent
                      Cloud resources.

                      '
                    example: true
                  meta:
                    type: object
                    description: Metadata about the resource.
                    readOnly: true
                    allOf:
                    - description: Metadata about the SCIM resource.
                      type: object
                      readOnly: true
                      properties:
                        resourceType:
                          type: string
                          description: The name of the resource type of the resource.
                          example: User
                        created:
                          type: string
                          format: date-time
                          description: The DateTime the Resource was added to Confluent Cloud.
                          example: '2025-01-01T12:00:00Z'
                        lastModified:
                          type: string
                          format: date-time
                          description: The most recent DateTime that the details of this Resource were
                            updated.
                          example: '2025-01-01T12:00:00Z'
                        location:
                          type: string
                          format: uri
                          description: The URI of the SCIM resource being returned.
                          example: https://api.confluent.cloud/scim/v2/Users/u-12345
                      title: scim.v2.Meta
                title: scim.v2.User
          headers:
            Location:
              schema:
                type: string
                format: uri
              description: The URI of the created User resource.
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            X-RateLimit-Limit:
              schema:
                type: integer
              description: The maximum number of requests you're permitted to make per time period.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: The number of requests remaining in the current rate limit window.
            X-RateLimit-Reset:
              schema:
                type: integer
              description: "The relative time in seconds until the current rate-limit window resets. \
                \ \n \n**Important:** This differs from Github and Twitter's same-named header which uses\
                \ UTC epoch seconds. We use relative time to avoid client/server time synchronization\
                \ issues."
        '400':
          description: Bad Request
          x-minispec-transform-ignore: true
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Standard SCIM error response format containing error details and status
                  information.

                  Returned when SCIM operations encounter validation errors or other issues.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema for the error response.
                    items:
                      type: string
                      example: urn:ietf:params:scim:api:messages:2.0:Error
                  status:
                    type: string
                    description: The HTTP status code of the error response.
                  detail:
                    type: string
                    description: A human-readable description of the error.
                title: scim.v2.Error
              example:
                schemas:
                - urn:ietf:params:scim:api:messages:2.0:Error
                status: '400'
                detail: Bad Request
        '401':
          description: Unauthorized
          x-minispec-transform-ignore: true
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            WWW-Authenticate:
              schema:
                type: string
              description: The unique identifier for the API request.
              example: Basic error="invalid_key", error_description="The API Key is invalid"
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Standard SCIM error response format containing error details and status
                  information.

                  Returned when SCIM operations encounter validation errors or other issues.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema for the error response.
                    items:
                      type: string
                      example: urn:ietf:params:scim:api:messages:2.0:Error
                  status:
                    type: string
                    description: The HTTP status code of the error response.
                  detail:
                    type: string
                    description: A human-readable description of the error.
                title: scim.v2.Error
              example:
                schemas:
                - urn:ietf:params:scim:api:messages:2.0:Error
                status: '401'
                detail: Unauthorized
        '402':
          description: Over Quota
          x-minispec-transform-ignore: true
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Standard SCIM error response format containing error details and status
                  information.

                  Returned when SCIM operations encounter validation errors or other issues.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema for the error response.
                    items:
                      type: string
                      example: urn:ietf:params:scim:api:messages:2.0:Error
                  status:
                    type: string
                    description: The HTTP status code of the error response.
                  detail:
                    type: string
                    description: A human-readable description of the error.
                title: scim.v2.Error
              example:
                schemas:
                - urn:ietf:params:scim:api:messages:2.0:Error
                status: '402'
                detail: Over Quota
        '403':
          description: Forbidden
          x-minispec-transform-ignore: true
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Standard SCIM error response format containing error details and status
                  information.

                  Returned when SCIM operations encounter validation errors or other issues.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema for the error response.
                    items:
                      type: string
                      example: urn:ietf:params:scim:api:messages:2.0:Error
                  status:
                    type: string
                    description: The HTTP status code of the error response.
                  detail:
                    type: string
                    description: A human-readable description of the error.
                title: scim.v2.Error
              example:
                schemas:
                - urn:ietf:params:scim:api:messages:2.0:Error
                status: '403'
                detail: Forbidden
        '409':
          description: Conflict
          x-minispec-transform-ignore: true
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            Location:
              schema:
                type: string
                format: uri
                example: https://api.confluent.cloud/{object}/{id}
              description: Resource URI of conflicting resource
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Standard SCIM error response format containing error details and status
                  information.

                  Returned when SCIM operations encounter validation errors or other issues.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema for the error response.
                    items:
                      type: string
                      example: urn:ietf:params:scim:api:messages:2.0:Error
                  status:
                    type: string
                    description: The HTTP status code of the error response.
                  detail:
                    type: string
                    description: A human-readable description of the error.
                title: scim.v2.Error
              example:
                schemas:
                - urn:ietf:params:scim:api:messages:2.0:Error
                status: '409'
                detail: Conflict
        '429':
          description: Rate Limit Exceeded
          x-minispec-transform-ignore: true
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            X-RateLimit-Limit:
              schema:
                type: integer
              description: The maximum number of requests you're permitted to make per time period.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: The number of requests remaining in the current rate limit window.
            X-RateLimit-Reset:
              schema:
                type: integer
              description: "The relative time in seconds until the current rate-limit window resets. \
                \ \n \n**Important:** This differs from Github and Twitter's same-named header which uses\
                \ UTC epoch seconds. We use relative time to avoid client/server time synchronization\
                \ issues."
            Retry-After:
              schema:
                type: integer
              description: The number of seconds to wait until the rate limit window resets. Only sent
                when the rate limit is reached.
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Standard SCIM error response format containing error details and status
                  information.

                  Returned when SCIM operations encounter validation errors or other issues.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema for the error response.
                    items:
                      type: string
                      example: urn:ietf:params:scim:api:messages:2.0:Error
                  status:
                    type: string
                    description: The HTTP status code of the error response.
                  detail:
                    type: string
                    description: A human-readable description of the error.
                title: scim.v2.Error
              example:
                schemas:
                - urn:ietf:params:scim:api:messages:2.0:Error
                status: '429'
                detail: Rate Limit Exceeded
        '500':
          description: Internal Server Error
          x-minispec-transform-ignore: true
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/scim+json:
              schema:
                type: object
                description: 'Standard SCIM error response format containing error details and status
                  information.

                  Returned when SCIM operations encounter validation errors or other issues.

                  '
                properties:
                  schemas:
                    type: array
                    description: The SCIM schema for the error response.
                    items:
                      type: string
                      example: urn:ietf:params:scim:api:messages:2.0:Error
                  status:
                    type: string
                    description: The HTTP status code of the error response.
                  detail:
                    type: string
                    description: A human-readable description of the error.
                title: scim.v2.Error
              example:
                schemas:
                - urn:ietf:params:scim:api:messages:2.0:Error
                status: '500'
                detail: Internal Server Error
      servers:
      - url: https://api.confluent.cloud
        description: Confluent Cloud API
      jsonRequestBodyExample:
        schemas:
        - urn:ietf:params:scim:schemas:core:2.0:User
        userName: marty.mcfly@example.com
        name:
          givenName: Marty
          familyName: McFly