AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'user_group' table (ID prefix 'usgr_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
User Group (user_group)
A number of users that can be referenced all at once for different processes, notifications or other uses
Python SDK & PlatformContext Example
# 1. Query user_group via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM user_group ORDER BY created_date DESC LIMIT 25")
# 2. Create user_group record (Generates 'usgr_...' Base62 ID)
created = await platform.records.create("user_group", [
{"name": "Example User Group"}
])| Field API Name | Type / Format | Lookup Target | Flags | Description |
|---|---|---|---|---|
| id | string | — | required | Id |
| name | string | — | required | Name |
| created_date | stringdate-time | — | Created Date | |
| modified_date | stringdate-time | — | Modified Date | |
| created_by | stringlookup | → user (string ID) | system | Created By |
| modified_by | stringlookup | → user (string ID) | system | Modified By |
| users | listlookup_list | → user (string ID) | The users that are part of this group | |
| purpose | string | — | What is this user group used for? | |
| shared_with | listsharing | — | system | Shared With |
