public_shared_links
Identify files and folders with open shared links (anyone with URL) to detect high-exposure sharing. Scans accessible folders and reports item type, name, owner, access, and download permission.
Instructions
List items with an open ("anyone with the link") shared link (enumeration).
Walks folders the authenticating co-admin user can see and reports files and
folders whose shared link access is open — reachable by anyone with the
URL, the highest-exposure sharing mode.
Args:
root_folder_id: Folder to start from ("0" = the user's root).
max_folders: Cap on folders visited (default 150); capped discloses truncation.
max_depth: Folder recursion depth (default 1 = top-level only; raise to reach file links inside folders).
Coverage note: limited to content the co-admin user can access and to the
caps. Returns folders_scanned, capped, count, and
public_shared_links (item type/id/name, owner, access, can_download). On
failure returns {"error": ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| max_folders | No | ||
| root_folder_id | No | 0 |