coda_search_principals
Search users and groups within a Coda doc by name or email prefix to find principals for permission assignment. Use this to locate recipients before adding permissions.
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 |