We are the owner of the folder drive.
I have checked with Grok:
The recommended and current way to restrict downloads (along with print and copy) for viewers and commenters via the Google Drive API v3 is to use the downloadRestrictions field in the File resource.API endpointPATCH
https://www.googleapis.com/drive/v3/files/{FILE_ID}Request body (JSON) to restrict download
json
{
"downloadRestrictions": {
"itemDownloadRestriction": "restrictedForReaders"
}
}
- This disables download, print, and copy options for readers (viewers) and commenters.
- Buttons are typically hidden or non-functional in the viewer.
Alternative (legacy field, still supported but not recommended for new implementations)
json
{
"copyRequiresWriterPermission": true
}
- This achieves a similar effect (disables copy/print/download for non-writers).
- Official docs recommend migrating to downloadRestrictions for better granularity and future compatibility.
Key notes (as of 2026)
The downloadRestrictions approach is the modern, preferred method for precisely this purpose. If you need code samples in a specific language, let me know!
Kindly advise can i use the PAbbly API or pabbly drive to achieve the above?