
Google Drive: File Permissions, Remove AnyoneWithLink
Deletes AnyoneWithLink permission (a Reader permission to anyone who has the link) from the file. There is no change in the other permissions for the file.
Download
- Google-Drive-File-Permissions-Remove-AnyoneWithLink.xml
- Google-Drive-File-Permissions-Remove-AnyoneWithLink-2023.xml
- 2023-08-15 (C) Questetra, Inc. (MIT License)
- for “GraalJS standard (engine-type 3)” on v15.0 or above
2020-10-05 (C) Questetra, Inc. (MIT License)
https://support.questetra.com/addons/google-drive-file-permissions-remove-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 deleted.To Get “ClientId” and “Secret”
- 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, Add AnyoneWithLink – Questetra Support