---
title: "Unban a user"
method: POST
path: "/projects/{id}/auth/users/{userId}/unban"
tags: ["Auth Admin"]
---

# Unban a user

`POST /projects/{id}/auth/users/{userId}/unban`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/auth/users/{userId}/unban`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Removes a ban from a user, restoring their ability to sign in.
The user's status is set back to 'active'. Deleted accounts cannot be restored.

## Path parameters

- `id` string, uuid, required
- `userId` string, uuid, required

## Response `200`

User unbanned successfully

- UnbanUserResponse: Response when unbanning a user
  - `message` string, required
  - `user_id` string, uuid, required
  - `email` string, email, required
  - `status` 'active', required

## Other responses

- `404`: User not found
- `409`: Deleted accounts cannot be banned or restored

## Changes

- **2026-10-07** `23e7875e7c4c`: 2 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
  - added the non-success response with the status `409`
- **2026-09-19** `3a6f365f3f35`: 3 breaking, 6 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `404`
  - added the optional property `code` to the response with the `404` status
  - …5 more
- **2026-08-27** `bb44e98aba2e`: 7 breaking, 2 warning
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `404`
  - removed the required property `email` from the response with the `200` status
  - removed the required property `error` from the response with the `404` status
  - …5 more
- **2026-07-27** `bb52784e098a`: 1 info
  - added the optional property `code` to the response with the `404` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/auth/users/:userId/unban/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
