Coda Search Principals
coda_search_principalsSearch Coda users and groups by name or email prefix to find principals before granting doc permissions. Returns type, email, and name for each match.
Instructions
Search for users and groups that can be added to a doc's permissions.
Returns matching principals (users and groups) based on the query string. Use this to look up a user's email or find groups before calling coda_add_permission. Results include the principal's type, email, and name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (name or email prefix) | |
| doc_id | Yes | The doc ID to search principals in |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |