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

# Get the SCIM mismatch report

> List members who signed in by SSO in the last 30 days with no SCIM record, and active SCIM records whose user never signed in by SSO. Each list holds at most 500 rows; `truncated` says whether it was cut. `report` is null when the organization has no SSO connection or SCIM is off.



## OpenAPI

````yaml /openapi.json get /sso/scim/mismatch-report
openapi: 3.1.1
info:
  title: Sazabi Public API
  version: 1.0.0
  description: >
    Public REST API for Sazabi. Authenticate using a secret API key in the
    Authorization header.


    ## Pagination


    This API uses two pagination strategies depending on the endpoint type:


    ### Cursor-Based Pagination (List Endpoints)


    List endpoints (threads, messages, keys) use cursor-based pagination for
    efficient, consistent results:


    - **Parameters**: `limit` (items per page, default 50, max 100), `cursor`
    (opaque pagination token)

    - **Response**: Includes `nextCursor` field - pass this as `cursor` in the
    next request

    - **End of results**: When `nextCursor` is `null`, there are no more results

    - **Example**: `GET
    /v1/threads?limit=20&cursor=01234567-89ab-cdef-0123-456789abcdef`


    ### Page-Based Pagination (Search Endpoints)


    Search endpoints use page-based pagination due to the underlying search
    engine:


    - **Parameters**: `limit` (items per page, default 20, max 100), `page`
    (1-indexed page number)

    - **Response**: Includes `pagination` object with `page`, `limit`,
    `totalResults`, `totalPages`

    - **Example**: `GET /v1/search/threads?q=error&limit=10&page=2`
servers:
  - url: https://api.sazabi.com/v1
    description: Production
security: []
paths:
  /sso/scim/mismatch-report:
    get:
      tags:
        - SSO
      summary: Get the SCIM mismatch report
      description: >-
        List members who signed in by SSO in the last 30 days with no SCIM
        record, and active SCIM records whose user never signed in by SSO. Each
        list holds at most 500 rows; `truncated` says whether it was cut.
        `report` is null when the organization has no SSO connection or SCIM is
        off.
      operationId: sso.scim.mismatchReport.get
      parameters:
        - name: organizationId
          in: query
          schema:
            type: string
            minLength: 1
            description: >-
              Organization whose SSO connection's SCIM the operation targets.
              User tokens must supply it unless the credential's fixed scope
              resolves it; secret keys may omit it (the key's organization
              applies).
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  report:
                    anyOf:
                      - type: object
                        properties:
                          connectionId:
                            type: string
                          generatedAt:
                            type: string
                            format: date-time
                          signInWindowDays:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            exclusiveMinimum: 0
                          lastRequestAt:
                            anyOf:
                              - type: string
                                format: date-time
                              - type: 'null'
                          lastChangeAt:
                            anyOf:
                              - type: string
                                format: date-time
                              - type: 'null'
                          signedInWithoutScimRecord:
                            type: object
                            properties:
                              members:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    userId:
                                      type: string
                                    email:
                                      type: string
                                    name:
                                      type: string
                                    lastSignInAt:
                                      type: string
                                      format: date-time
                                    linkedAt:
                                      type: string
                                      format: date-time
                                  required:
                                    - userId
                                    - email
                                    - name
                                    - lastSignInAt
                                    - linkedAt
                              truncated:
                                type: boolean
                            required:
                              - members
                              - truncated
                          scimRecordsNeverSignedIn:
                            type: object
                            properties:
                              records:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    scimUserId:
                                      type: string
                                    userId:
                                      type: string
                                    email:
                                      type: string
                                    name:
                                      type: string
                                    userName:
                                      type: string
                                    externalId:
                                      type: string
                                    createdAt:
                                      type: string
                                      format: date-time
                                  required:
                                    - scimUserId
                                    - userId
                                    - email
                                    - name
                                    - userName
                                    - externalId
                                    - createdAt
                              truncated:
                                type: boolean
                            required:
                              - records
                              - truncated
                        required:
                          - connectionId
                          - generatedAt
                          - signInWindowDays
                          - lastRequestAt
                          - lastChangeAt
                          - signedInWithoutScimRecord
                          - scimRecordsNeverSignedIn
                      - type: 'null'
                required:
                  - report

````

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