
Google Drive: File Permissions, Add AnyoneWithLink
Creates AnyoneWithLink permission (a Reader permission to anyone who has the link) to the file. Viewers who are notified of the link do not need to sign in to their Google account.
Download
- Google-Drive-File-Permissions-Add-AnyoneWithLink.xml
- Google-Drive-File-Permissions-Add-AnyoneWithLink-2023.xml
- 2023-08-15 (C) Questetra, Inc. (MIT License)
- for “GraalJS standard (engine-type 3)” on v15.0 or above
- Google-Drive-File-Permissions-Add-AnyoneWithLink-2026.xml
- 2026-04-30 (C) Questetra, Inc. (MIT License)
- Due to the deprecation of the method
getOAuth2Token(String)at v18. - https://support.questetra.com/ja/versions/version-180/
2020-10-05 (C) Questetra, Inc. (MIT License)
https://support.questetra.com/addons/google-drive-file-permissions-add-anyonewithlink/
The Addon-import feature is available with Professional edition.
Notes
- This request requires authorization with at least one of the following scopes:
- https://www.googleapis.com/auth/drive
- https://www.googleapis.com/auth/drive.file (only files created by the app)
- Supports both My Drives and shared drives. Shared-with-me are also referable.
- No error will occur even if you execute it while it has already been created.
- To Get “ClientId” and “Secret”
- Access to https://console.developers.google.com/
- OAuth Setting sample
- “Authorization Endpoint URL”
- “Token Endpoint URL”
- “Scope”
- Error Log sample (wrong fileId or Scope)
- AutomatedTask UnexpectedResponseError: 404
- { “error”: {
- “errors”: [ {
- “domain”: “global”,
- “reason”: “notFound”,
- “message”: “File not found: 1lKhxxxxcQ2Fxxxx1d0lxxxxCftexxxxQ.”,
- “locationType”: “parameter”,
- “location”: “fileId”
- } ],
- “code”: 404,
- “message”: “File not found: 1lKhxxxxcQ2Fxxxx1d0lxxxxCftexxxxQ.”
- } }
- AutomatedTask UnexpectedResponseError: 404
Capture


Pingback: Google Drive: File Permissions, Remove AnyoneWithLink – Questetra Support