# The Backend User object

The Backend `User` object is similar to the `User` object as it holds information about a user of your application, such as their unique identifier, name, email addresses, phone numbers, and more. However, the Backend `User` object is different from the `User` object in that it is used in the [Backend API](https://clerk.com/docs/reference/backend-api/model/User){{ target: '_blank' }} and is not directly accessible from the Frontend API.

## Properties

| Property                                                           | Type                                                                                                                        | Description                                                                                                                                                                                               |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="backupcodeenabled"></a> `backupCodeEnabled`                 | `boolean`                                                                                                                   | A boolean indicating whether the user has enabled Backup codes.                                                                                                                                           |
| <a id="banned"></a> `banned`                                       | `boolean`                                                                                                                   | A boolean indicating whether the user is banned or not.                                                                                                                                                   |
| <a id="createdat"></a> `createdAt`                                 | `number`                                                                                                                    | The date when the user was first created.                                                                                                                                                                 |
| <a id="createorganizationenabled"></a> `createOrganizationEnabled` | `boolean`                                                                                                                   | A boolean indicating whether the Organization creation is enabled for the user or not.                                                                                                                    |
| <a id="createorganizationslimit"></a> `createOrganizationsLimit`   | `null | number`                                                                                                  | An integer indicating the number of Organizations that can be created by the user. If the value is `0`, then the user can create unlimited Organizations. Default is `null`.                              |
| <a id="deleteselfenabled"></a> `deleteSelfEnabled`                 | `boolean`                                                                                                                   | A boolean indicating whether the user can delete their own account.                                                                                                                                       |
| <a id="emailaddresses"></a> `emailAddresses`                       | <code><a href="https://clerk.com/docs/reference/backend/types/backend-email-address.md">EmailAddress</a>[]</code>           | An array of all the `EmailAddress` objects associated with the user. Includes the primary.                                                                                                                |
| <a id="enterpriseaccounts"></a> `enterpriseAccounts`               | <code><a href="https://clerk.com/docs/reference/backend/types/backend-enterprise-account.md">EnterpriseAccount</a>[]</code> | An array of all the `EnterpriseAccount` objects associated with the user via enterprise SSO.                                                                                                              |
| <a id="externalaccounts"></a> `externalAccounts`                   | <code><a href="https://clerk.com/docs/reference/backend/types/backend-external-account.md">ExternalAccount</a>[]</code>     | An array of all the `ExternalAccount` objects associated with the user via OAuth. **Note**: This includes both verified & unverified external accounts.                                                   |
| <a id="externalid"></a> `externalId`                               | `null | string`                                                                                                  | The ID of the user as used in your external systems. Must be unique across your instance.                                                                                                                 |
| <a id="firstname"></a> `firstName`                                 | `null | string`                                                                                                  | The user's first name.                                                                                                                                                                                    |
| <a id="hasimage"></a> `hasImage`                                   | `boolean`                                                                                                                   | A getter boolean to check if the user has uploaded an image or one was copied from OAuth. Returns `false` if Clerk is displaying an avatar for the user.                                                  |
| <a id="id"></a> `id`                                               | `string`                                                                                                                    | The unique identifier for the user.                                                                                                                                                                       |
| <a id="imageurl"></a> `imageUrl`                                   | `string`                                                                                                                    | The URL of the user's profile image.                                                                                                                                                                      |
| <a id="lastactiveat"></a> `lastActiveAt`                           | `null | number`                                                                                                  | Date when the user was last active.                                                                                                                                                                       |
| <a id="lastname"></a> `lastName`                                   | `null | string`                                                                                                  | The user's last name.                                                                                                                                                                                     |
| <a id="lastsigninat"></a> `lastSignInAt`                           | `null | number`                                                                                                  | The date when the user last signed in. May be empty if the user has never signed in.                                                                                                                      |
| <a id="legalacceptedat"></a> `legalAcceptedAt`                     | `null | number`                                                                                                  | The unix timestamp of when the user accepted the legal requirements. `null` if [**Require express consent to legal documents**](https://clerk.com/docs/guides/secure/legal-compliance.md) is not enabled. |
| <a id="locale"></a> `locale`                                       | `null | string`                                                                                                  | The locale of the user in BCP-47 format.                                                                                                                                                                  |
| <a id="locked"></a> `locked`                                       | `boolean`                                                                                                                   | A boolean indicating whether the user is banned or not.                                                                                                                                                   |
| <a id="passwordenabled"></a> `passwordEnabled`                     | `boolean`                                                                                                                   | A boolean indicating whether the user has a password on their account.                                                                                                                                    |
| <a id="phonenumbers"></a> `phoneNumbers`                           | <code><a href="https://clerk.com/docs/reference/backend/types/backend-phone-number.md">PhoneNumber</a>[]</code>             | An array of all the `PhoneNumber` objects associated with the user. Includes the primary.                                                                                                                 |
| <a id="primaryemailaddressid"></a> `primaryEmailAddressId`         | `null | string`                                                                                                  | The ID for the `EmailAddress` that the user has set as primary.                                                                                                                                           |
| <a id="primaryphonenumberid"></a> `primaryPhoneNumberId`           | `null | string`                                                                                                  | The ID for the `PhoneNumber` that the user has set as primary.                                                                                                                                            |
| <a id="primaryweb3walletid"></a> `primaryWeb3WalletId`             | `null | string`                                                                                                  | The ID for the [`Web3Wallet`](https://clerk.com/docs/reference/backend/types/backend-web3-wallet.md) that the user signed up with.                                                                        |
| <a id="privatemetadata"></a> `privateMetadata`                     | [UserPrivateMetadata](https://clerk.com/docs/reference/types/metadata.md#user-private-metadata)                             | Metadata that can be read and set only from the [Backend API](https://clerk.com/docs/reference/backend-api){{ target: '_blank' }}.                                                                        |
| <a id="publicmetadata"></a> `publicMetadata`                       | [UserPublicMetadata](https://clerk.com/docs/reference/types/metadata.md#user-public-metadata)                               | Metadata that can be read from the Frontend API and [Backend API](https://clerk.com/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API.                           |
| <a id="totpenabled"></a> `totpEnabled`                             | `boolean`                                                                                                                   | A boolean indicating whether the user has enabled TOTP by generating a TOTP secret and verifying it via an authenticator app.                                                                             |
| <a id="twofactorenabled"></a> `twoFactorEnabled`                   | `boolean`                                                                                                                   | A boolean indicating whether the user has enabled two-factor authentication.                                                                                                                              |
| <a id="unsafemetadata"></a> `unsafeMetadata`                       | [UserUnsafeMetadata](https://clerk.com/docs/reference/types/metadata.md#user-unsafe-metadata)                               | Metadata that can be read and set from the Frontend API. It's considered unsafe because it can be modified from the frontend.                                                                             |
| <a id="updatedat"></a> `updatedAt`                                 | `number`                                                                                                                    | The date when the user was last updated.                                                                                                                                                                  |
| <a id="username"></a> `username`                                   | `null | string`                                                                                                  | The user's username.                                                                                                                                                                                      |
| <a id="web3wallets"></a> `web3Wallets`                             | <code><a href="https://clerk.com/docs/reference/backend/types/backend-web3-wallet.md">Web3Wallet</a>[]</code>               | An array of all the `Web3Wallet` objects associated with the user. Includes the primary.                                                                                                                  |

## Accessors

| Property                                               | Type                                                                                                                   | Description                            |
| ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| <a id="fullname"></a> `fullName`                       | `null | string`                                                                                             | The full name of the user.             |
| <a id="primaryemailaddress"></a> `primaryEmailAddress` | <code>null | <a href="https://clerk.com/docs/reference/backend/types/backend-email-address.md">EmailAddress</a></code> | The primary email address of the user. |
| <a id="primaryphonenumber"></a> `primaryPhoneNumber`   | <code>null | <a href="https://clerk.com/docs/reference/backend/types/backend-phone-number.md">PhoneNumber</a></code>   | The primary phone number of the user.  |
| <a id="primaryweb3wallet"></a> `primaryWeb3Wallet`     | <code>null | <a href="https://clerk.com/docs/reference/backend/types/backend-web3-wallet.md">Web3Wallet</a></code>     | The primary web3 wallet of the user.   |

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
