> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# UserProfile

> An object containing attributes about the user such as id, email, first name, etc.

<Card title="Recommended: JavaScript SDK with React Hooks" icon="react" color="#4779FE">
  For new React apps, we recommend the JavaScript SDK with React Hooks (`@dynamic-labs-sdk/react-hooks`) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the [React quickstart (JavaScript SDK)](/javascript/reference/react-quickstart) to get started.
</Card>

| Field                                                                                          | Description                                                                                 |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| userId?: string                                                                                | \[Optional] - Dynamic's UUID                                                                |
| sessionId: string                                                                              | \[Optional] - The current session ID                                                        |
| environmentId?: string                                                                         | \[Optional] - Dynamic environment ID                                                        |
| newUser?: boolean                                                                              | \[Optional] - Is it first time user created/logged in                                       |
| email?: string                                                                                 | \[Optional] - User's email                                                                  |
| alias?: string                                                                                 | \[Optional] - User's alias                                                                  |
| firstName?: string                                                                             | \[Optional] - User's first name                                                             |
| lastName?: string                                                                              | \[Optional] - User's last name                                                              |
| phoneNumber? string                                                                            | \[Optional] - User's phone number                                                           |
| lists?: string\[]                                                                              | \[Optional] - User's access lists. See [Access Control](/overview/access-control/overview). |
| verifiedCredentials?: [JWTVerifiedCredential](/react/reference/objects/verified-credential)\[] | \[Optional] - User's verified credentials                                                   |
| lastVerifiedCredentialId: string \|\ undefined                                                 | \[Optional] - User's last verified credential ID                                            |
| scope?: string                                                                                 | \[Optional] - User's scope                                                                  |
