getUser() - Users | Clerk Docs

getUser()

Gets a User for the specified user ID.

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

Parameters

Usage

Note: Using clerkClient varies based on the SDK you're using. Refer to the overview for usage details, including guidance on how to access the userId and other properties.

const userId = 'user_123'

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

Backend API (BAPI) endpoint

This method in the SDK is a wrapper around the BAPI endpoint GET/users/{user_id}. See the BAPI reference⁠ for more information.