Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

getUser()

Retrieves a single user by their ID, if the ID is valid. Throws an error otherwise.

const userId = 'my-user-id'; const user = await clerkClient.users.getUser(userId);

Required parameters

NameTypeDescription
userIdstringThe ID of the user to retrieve.

Last updated on August 16, 2023

What did you think of this content?

Clerk © 2023