# User

Schema reference for user profiles and the preferences attached to them.

### Users Table

**Table Name:** `users`\
**Description:** User profiles and preferences

{% tabs %}
{% tab title="Schema" %}

| Column               | Type      | Description             |
| -------------------- | --------- | ----------------------- |
| `_id`                | string    | Internal identifier     |
| `additional_context` | json      | Custom user context     |
| `email`              | string    | User email address      |
| `first_name`         | string    | User first name         |
| `last_name`          | string    | User last name          |
| `org_id`             | string    | Organization identifier |
| `preferences`        | json      | User preferences        |
| `region_name`        | string    | User region             |
| `role`               | string    | User role               |
| `updated_at`         | timestamp | Last update timestamp   |
| `user_id`            | string    | User unique identifier  |
| `user_models`        | json      | Personalization models  |
| {% endtab %}         |           |                         |

{% tab title="Query Example" %}

```sql
SELECT
  user_id,
  email,
  role,
  preferences,
  updated_at
FROM users
ORDER BY updated_at DESC;
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.amigo.ai/developer-guide/classic-api/data-access/organization-tables/user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
