List who a doc is shared with
list_permissionsIdentify who has access to a Google Doc, with roles for people, groups, domain, or anyone-with-link. Shows if domain/link grants allow discovery in search.
Instructions
List the permissions on a Google Doc (people, groups, domain, anyone-with-link) with their roles. Each entry carries a subject naming who it covers — an email, " (domain)", or "anyone with the link" — since a domain or link grant has no email. For those, allowFileDiscovery: true means the file also surfaces in that audience's search, not merely that it opens with the link. Note a doc created under a Workspace domain may already carry a domain grant before you share it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| documentId | Yes |