---
title: "Gets information about a particular user."
method: GET
path: "/_matrix/client/v3/admin/whois/{userId}"
tags: ["Server administration"]
---

# Gets information about a particular user.

`GET /_matrix/client/v3/admin/whois/{userId}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/admin/whois/{userId}`
- Auth: one of:
  - API key in query parameter `access_token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/admin/whois/:userId/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets information about a particular user.

This API may be restricted to only be called by the user being looked
up, or by a server admin. Server-local administrator privileges are not
specified in this document.

## Path parameters

- `userId` string, required

## Response `200`

The lookup was successful.

- object
  - `devices` object: Each key is an identifier for one of the user's devices.
  - `user_id` string: The Matrix user ID of the user.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
