Skip to content

ClerkUser

Defined in: users/users.ts:44

A user as the Clerk Backend API returns it.

backup_code_enabled: boolean

Defined in: users/users.ts:100

Whether backup codes are enabled for the user.


banned: boolean

Defined in: users/users.ts:82

Whether the user is banned.


created_at: number

Defined in: users/users.ts:90

When the user was created, as a Unix timestamp in milliseconds.


email_addresses: ClerkEmailAddress[]

Defined in: users/users.ts:76

The user’s email addresses.


external_id: string | null

Defined in: users/users.ts:50

The identifier the user has in your own system, or null when unset.


first_name: string | null

Defined in: users/users.ts:60

The user’s first name, or null when unset.


has_image: boolean

Defined in: users/users.ts:68

Whether the user has uploaded an image.


id: string

Defined in: users/users.ts:46

The user’s identifier.


image_url: string

Defined in: users/users.ts:66

The URL of the user’s image.


last_name: string | null

Defined in: users/users.ts:62

The user’s last name, or null when unset.


last_sign_in_at: number | null

Defined in: users/users.ts:80

When the user last signed in, as a Unix timestamp in milliseconds, or null if they never have.


locked: boolean

Defined in: users/users.ts:84

Whether the user is locked out.


lockout_expires_in_seconds: number | null

Defined in: users/users.ts:86

Seconds until the lockout ends, or null when the user is not locked.


object: "user"

Defined in: users/users.ts:48

The object type, always "user".


password_enabled: boolean

Defined in: users/users.ts:94

Whether the user has a password set.


phone_numbers: ClerkPhoneNumber[]

Defined in: users/users.ts:78

The user’s phone numbers.


primary_email_address_id: string | null

Defined in: users/users.ts:52

The id of the user’s primary email address, or null when there is none.


primary_phone_number_id: string | null

Defined in: users/users.ts:54

The id of the user’s primary phone number, or null when there is none.


primary_web3_wallet_id: string | null

Defined in: users/users.ts:56

The id of the user’s primary web3 wallet, or null when there is none.


private_metadata: Record<string, unknown>

Defined in: users/users.ts:72

Metadata readable and writable only from the backend.


profile_image_url: string

Defined in: users/users.ts:64

The URL of the user’s profile image.


public_metadata: Record<string, unknown>

Defined in: users/users.ts:70

Metadata readable from the frontend and backend, writable only from the backend.


totp_enabled: boolean

Defined in: users/users.ts:98

Whether authenticator-app (TOTP) two-factor is enabled for the user.


two_factor_enabled: boolean

Defined in: users/users.ts:96

Whether two-factor authentication is enabled for the user.


unsafe_metadata: Record<string, unknown>

Defined in: users/users.ts:74

Metadata that the frontend can also read and write.


updated_at: number

Defined in: users/users.ts:92

When the user was last updated, as a Unix timestamp in milliseconds.


username: string | null

Defined in: users/users.ts:58

The user’s username, or null when unset.


verification_attempts_remaining: number | null

Defined in: users/users.ts:88

How many verification attempts the user has left, or null when not limited.