← All Foundational Objects/Prefix: usgr_9 Fields
AI-Agent-First Documentation
/SKILL.md
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 NameType / FormatLookup TargetFlagsDescription
idstring—requiredId
namestring—requiredName
created_datestringdate-time—Created Date
modified_datestringdate-time—Modified Date
created_bystringlookup→ user (string ID)systemCreated By
modified_bystringlookup→ user (string ID)systemModified By
userslistlookup_list→ user (string ID)The users that are part of this group
purposestring—What is this user group used for?
shared_withlistsharing—systemShared With