AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'permission' table (ID prefix 'per_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
Permission (permission)
Permissions control what a user can do.
Python SDK & PlatformContext Example
# 1. Query permission via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM permission ORDER BY created_date DESC LIMIT 25")
# 2. Create permission record (Generates 'per_...' Base62 ID)
created = await platform.records.create("permission", [
{"name": "Example Permission"}
])| 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) | requiredsystem | Created By |
| modified_by | stringlookup | → user (string ID) | requiredsystem | Modified By |
| object_field_permissions | jsonjson | — | Object Field Permissions | |
| object_permissions | jsonjson | — | Object Permissions | |
| app | stringlookup | → app (string ID) | The app that the permission is related to | |
| shared_with | listsharing | — | system | Shared With |
| scopes | list | — | The apis this permission gives access to |
