Setting users drive files to readonly, in bulk.

42 views
Skip to first unread message

Christopher Noon

unread,
Jun 25, 2026, 9:38:42 AMJun 25
to GAM for Google Workspace
Hello,
I'm trying to bulk edit a large list of files to enable the readonly flag.  This worked fine in my testing, but in real world attempts, I'm seeing timeouts on certain files (resulting in GAM doing backoffs for each bad file and generally ruining the bulk job).  The command I'm running is:

gam csv ./driveFilesList.csv gam user ~Owner update drivefile ~id contentrestrictions readonly true

Looking at the fileinfo for a good result versus a bad result, the only difference I can see is that the good files have capability:
"canRemoveContentRestriction: True"
and bad files have:
"canRemoveContentRestriction: False"

I believe that those capability values are calulated and not setable.  Any ideas for getting around this?  

Chris

V. Grose

unread,
Jul 15, 2026, 9:55:53 PM (4 days ago) Jul 15
to google-ap...@googlegroups.com
I promise I will be going to the authorities 

Vickiegrose

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/29512fd2-cd28-419a-8117-23a3378511b6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages