---
title: "Admin Search Accounts"
method: GET
path: "/api/price-compare/admin/search-accounts"
tags: ["Price Compare"]
---

# Admin Search Accounts

`GET /api/price-compare/admin/search-accounts`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/price-compare/admin/search-accounts`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Accounts to copy a benchmark into, matched on e-mail.

The limit is a guard against a one-letter query, not a feature of ordinary
use: 83 accounts can sign in at all, "dodopizza" matches 16 and "pizza" 21,
so a page of 50 shows a real search whole. It exists because this reads
another company's production users table and a stray keystroke should not
pull all of it — and because eighty rows is a second list, not a picker. Only accounts that can
actually SIGN IN come back — offering a blocked one would walk the operator
into a refusal — and that condition lives in the WHERE clause, not in a pass
over the results afterwards: filtering after the LIMIT returned the first
twenty matches and then threw most of them away, so a search for a company
domain showed four of its people and hid the rest.

Each row carries the account's grants, which is the point of the picker
rather than a decoration: it answers "will the copy show any data" while the
operator is still choosing, instead of after.

## Query parameters

- `q` string, required
- `limit` integer

## Response `200`

Successful Response

- AccountSearchResponse
  - `items` AccountOption[]
    - `user_id` string, required
    - `email` string, required
    - `name` string, nullable
    - `source` 'local' | 'getplace', required
    - `allow_menu_access` boolean
    - `grants` GrantSummary[]
      - `country_code` string, required
      - `chain_count` integer
      - `cities` string[]
    - `set_count` integer
  - `total` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getplace/apis/getplace-insights-api.md) - [All operations](https://skmtc.dev/getplace/apis/getplace-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getplace/apis/getplace-insights-api/revisions/0f337387603f?raw)
