# `getUser()`

Gets a [`User`](/content/docs/reference/backend/types/backend-user/index.html) for the specified user ID.

```javascript
function getUser(userId: string): Promise<User>
```

## [Parameters](/content/docs/reference/backend/user/get-user#parameters/index.html)

- **Name**: `userId`  
  **Type**: `string`  
  **Description**: The ID of the user to retrieve.

## [Usage](/content/docs/reference/backend/user/get-user#usage/index.html)

Note: Using `clerkClient` varies based on the SDK you're using. Refer to the [overview](/content/docs/reference/backend/overview/index.html) for usage details, including guidance on [how to access the `userId` and other properties](/content/docs/reference/backend/overview#example-get-the-user-id-and-other-properties/index.html).

```javascript
const userId = 'user_123'

const response = await clerkClient.users.getUser(userId)
```

## [Backend API (BAPI) endpoint](/content/docs/reference/backend/user/get-user#backend-api-bapi-endpoint/index.html)

This method in the SDK is a wrapper around the BAPI endpoint `GET/users/{user_id}`. See the [BAPI reference⁠](/content/docs/reference/backend-api/tag/users/GET/users/%7Buser_id%7D/index.html) for more information.
