coda_search_principals
Search for users and groups to add to a doc's permissions by name or email prefix, enabling lookup before granting access.
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 |
|---|---|---|---|
| doc_id | Yes | The doc ID to search principals in | |
| query | Yes | Search query (name or email prefix) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |