AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'user' table (ID prefix 'user_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
User (user)
User is you! What we need to make sure the application works best for you!
Python SDK & PlatformContext Example
# 1. Query user via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM user ORDER BY created_date DESC LIMIT 25")
# 2. Create user record (Generates 'user_...' Base62 ID)
created = await platform.records.create("user", [
{"name": "Example User"}
])| Field API Name | Type / Format | Lookup Target | Flags | Description |
|---|---|---|---|---|
| id | string | — | requiredsystem | Id |
| name | string | — | Name | |
| created_date | stringdate-time | — | system | Created Date |
| modified_date | stringdate-time | — | system | Modified Date |
| created_by | stringlookup | → user (string ID) | system | Created By |
| modified_by | stringlookup | → user (string ID) | system | Modified By |
| stringemail | — | |||
| first_name | string | — | First Name | |
| last_name | string | — | Last Name | |
| phone | phonejson | — | Phone | |
| is_active | boolean | — | Is Active | |
| is_superuser | boolean | — | Is Superuser | |
| is_account_owner | boolean | — | Is Account Owner | |
| is_account_admin | boolean | — | Is Account Admin | |
| organization_id | string | — | Organization Id | |
| activation_code | string | — | Activation Code | |
| permissions | list | — | Permissions | |
| notification_token | string | — | Notification Token | |
| notification_token_active | boolean | — | Notification Token Active | |
| notification_token_datetime | stringdate-time | — | Notification Token Datetime | |
| notifications | jsonjson | — | Notifications | |
| settings | jsonjson | — | Settings | |
| organization_name | string | — | Organization Name | |
| salesforce_id | string | — | Salesforce Id | |
| organizations | list | — | Organizations | |
| do_not_disturb | boolean | — | Do Not Disturb | |
| manager | stringlookup | → user (string ID) | Manager | |
| role | stringlookup | → role (string ID) | Role | |
| availability | jsonuser_availability | — | The availability of the user | |
| integration_user | boolean | — | Whether the user will be used for integrations | |
| ui_access | boolean | — | Whether the user can access the ui | |
| profile_picture | objectimage | — | Picture for the User | |
| vacation | listdate_list | — | The days the user is away. | |
| email_addresses | list | — | A list of emails associated with this user where if an email is sent by one of these addresses, the user is the owner. | |
| mfa_required | boolean | — | MFA Required | |
| shared_with | listsharing | — | system | Shared With |
| owner | stringlookup | → user (string ID) | system | Owner |
| is_portal_user | boolean | — | Whether they are an external portal user or not | |
| portal_id | string | — | The id of the portal they belong to |
