List who a doc is shared with
list_permissionsRetrieve a Google Doc's sharing permissions to see who has access and their roles, including domain and anyone-with-link grants.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "list_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The doc: a Drive id or URL, or /folder/doc. A tab path names its doc. | |
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. |