← All Foundational Objects/Prefix: role_11 Fields
AI-Agent-First Documentation
/SKILL.md
Prompt your Agent: "Query and mutate records on the 'role' table (ID prefix 'role_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."

Role (role)

Used to define the users role in the organization. This determines the records they will have access to via the sharing system

Python SDK & PlatformContext Example
# 1. Query role via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM role ORDER BY created_date DESC LIMIT 25")

# 2. Create role record (Generates 'role_...' Base62 ID)
created = await platform.records.create("role", [
    {"name": "Example Role"}
])
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
parent_rolestringlookup→ role (string ID)Parent Role
view_accessstringenum—requiredView Access
edit_accessstringenum—requiredEdit Access
delete_accessstringenum—requiredDelete Access
shared_withlistsharing—systemShared With