> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Use unblock user

> Remove a block on another user

## Overview

Returns a function that unblocks a user by their ID. Unblocking is idempotent and restores nothing — removed follows and connections stay gone; a previously frozen 1:1 conversation becomes usable again.

<Note>
  Requires the `moderation` bundle. See [Moderation — Blocking](/sdk/moderation/overview#blocking).
</Note>

## Usage Example

```tsx theme={null}
import { useUnblockUser } from "@sublay/react-js";

function UnblockAction({ userId }: { userId: string }) {
  const unblockUser = useUnblockUser();

  return <button onClick={() => unblockUser({ userId })}>Unblock</button>;
}
```

## Parameters

The hook returns a function. That function accepts:

<ParamField path="userId" type="string" required>
  The ID of the user to unblock (the target). Cannot be the current user's own ID.
</ParamField>

## Returns

The returned function resolves to `void` on success.

## Related

* [useBlockUser](/hooks/blocks/use-block-user)
* [useBlockManager](/hooks/blocks/use-block-manager) — combines block/unblock with status loading
