Issue
Is there an option to disable a file download option over python API. I have looked for the different option under the API URL, But have not found any option.
https://developers.google.com/drive/api/v2/reference/permissions/list
But google drive web UI have an option to disable a file download.
Solution
This is not a permission like the others, because it applies to all users equally. Rather, this checkbox corresponds to the labels.restricted
field of the File object in question:
labels.restricted
boolean
Whether viewers and commenters are prevented from downloading, printing, and copying this file.
Answered By - Thomas