coda_search_principals
Search for users and groups to add to a document's permissions. Look up emails or find groups 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 |