---
title: "Get user count"
method: POST
path: "/api/index/v1/getusercount"
tags: ["Troubleshooting"]
deprecated: true
---

# Get user count

`POST /api/index/v1/getusercount`

> **Deprecated.**

Fetches user count for the specified custom datasource.

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.

## Request body

- GetUserCountRequest — Describes the request body of the /getusercount API call
  - `datasource` string, required — Datasource name for which user count is needed.

## Response `200`

OK

- GetUserCountResponse — Describes the response body of the /getusercount API call
  - `userCount` integer — Number of users corresponding to the specified custom datasource.

## Other responses

- `400` — Bad Request
- `401` — Not Authorized
- `409` — Conflict

---

[API](https://skmtc.dev/gleanwork/apis/glean-indexing-api.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-indexing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-indexing-api/revisions/b47bf641faba/schema)
