---
title: "Get Expired Users"
method: GET
path: "/api/users/expired"
tags: ["User"]
---

# Get Expired Users

`GET /api/users/expired`

Get cleanup-target users in the specified scope.

- **target**: `expired` (time-based) or `limited` (usage-based)
- **expired_after** UTC datetime (optional)
- **expired_before** UTC datetime (optional)
- Date range filters are applied only when target is `expired`

## Query parameters

- `admin_username` string, nullable
- `target` 'expired' | 'limited'
- `expired_after` string, date-time, nullable
- `expired_before` string, date-time, nullable

## Response `200`

Successful Response

- string[]

## Other responses

- `401` — Unauthorized Error
- `422` — Validation Error

---

[API](https://skmtc.dev/ha-man2/apis/pasarguardapi.md) · [All operations](https://skmtc.dev/ha-man2/apis/pasarguardapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ha-man2/pasarguardapi/revisions/84d9ff88fcda/schema)
