---
title: "Diff Firebase Auth against this tenant's user table, in both directions. Read-only — it reports drift, it does not repair it. See ITE-515."
method: GET
path: "/Users/reconciliation"
tags: ["Users"]
---

# Diff Firebase Auth against this tenant's user table, in both directions. Read-only — it reports drift, it does not repair it. See ITE-515.

`GET /Users/reconciliation`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Users/reconciliation`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Users/reconciliation/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Counts plus the specific accounts and rows that disagree

- UserReconciliationReport: The result of diffing Firebase Auth against the tenant's user table, in both directions.
  - `tenantId` string, required
  - `firebaseAccountCount` union, required
    - integer
    - string, int32
  - `activeUserRowCount` union, required
    - integer
    - string, int32
  - `orphanedFirebaseAccounts` OrphanedFirebaseAccount[], required
    - `uid` string, required
    - `email` string, nullable, required
    - `kind` integer, required: Why a Firebase account has no active user row. The distinction matters for triage: a soft-deleted row explains the account (a delete whose Firebase half failed), while no row at all means we cannot say where it came from.
    - `disabled` boolean, required
    - `createdAt` string, date-time, nullable, required
  - `userRowsWithoutFirebaseAccount` UserRowWithoutFirebaseAccount[], required
    - `userId` string, required
    - `email` string, nullable, required
  - `isClean` boolean: True when the two stores agree — nothing to act on.

## Changes

- **2026-08-26** `a57456aa87b0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/Users/reconciliation/get.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
