Issues removing driveacls

211 views
Skip to first unread message

Taylor Curtis

unread,
Mar 9, 2021, 9:09:23 PM3/9/21
to GAM for Google Workspace
person@Persons-Mac-Pro ~ » gam csv /Users/person/Downloads/test.csv gam user first...@domain.com delete drivefileacl '~doc_id' anyonewithlink
2021-03-10T01:56:17.272+00:00,0,Using 5 processes...
User: first...@domain.com, Delete 1 Drive File/Folder ACL
User: first...@domain.com, Delete 1 Drive File/Folder ACL
User: first...@domain.com, Delete 1 Drive File/Folder ACL
User: first...@domain.com, Delete 1 Drive File/Folder ACL
User: first...@domain.com, Delete 1 Drive File/Folder ACL
User: first...@domain.com, Drive File/Folder ID: {{redacted}}, Delete Failed: The user does not have sufficient permissions for this file.
User: first...@domain.com, Drive File/Folder ID: {{redacted}}-A, Permission ID: anyoneWithLink, Deleted
User: first...@domain.com, Drive File/Folder ID: {{redacted}}, Permission ID: anyoneWithLink, Deleted
User: first...@domain.com, Drive File/Folder ID: {{redacted}}, Permission ID: anyoneWithLink, Deleted
User: first...@domain.com, Delete 1 Drive File/Folder ACL
User: first...@domain.com, Drive File/Folder ID: {{redacted}}, Permission ID: anyoneWithLink, Deleted
User: first...@domain.com, Drive File/Folder ID: {{redacted}}, Delete Failed: The user does not have sufficient permissions for this file.


Why would i get these errors on some files but not others? I am a super admin and setup as super so kinda confused at the moment. any insights are much appreciated. 

Taylor Curtis

unread,
Mar 9, 2021, 10:46:06 PM3/9/21
to GAM for Google Workspace
also tried asadmin

Ross Scroggs

unread,
Mar 9, 2021, 10:55:41 PM3/9/21
to google-ap...@googlegroups.com
Taylor,

Take any file ID that failed and do:
gam user first...@domain.com show drivefileacl <FileID>

What rights does first...@domain.com have to the file?

--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/00e785a2-03b0-4f70-98ff-1344b54acf56n%40googlegroups.com.

Taylor Curtis

unread,
Mar 10, 2021, 12:19:42 PM3/10/21
to GAM for Google Workspace

Hey Ross, 

Thank you that was the nudge i needed to figure this out, I was putting my user thinking this was the actor not realizing i need to put the owner and or someone with edit access. Im running this now gam redirect csv ./FileOwners.csv multiprocess redirect stderr ./FileOwners.err multiprocess csv /Users/person/Downloads/test.csv gam print ownership '~doc_id' to get the owners of all of the files and then rill re-run the remove anyonewithlink. Is this the best approach? Im using a specific doc id vs all because i want to only target docs that have not been viewed in a specific about of time. 
Reply all
Reply to author
Forward
0 new messages