--To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/89aad189-db34-49e0-83d6-4707a5deec59%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
Unknown user: Owner
I also tried first saving the output of the first command to csv file, then issue the second command separately (specifying that csv file) but got same error. The first fieldname of the CSV file is clearly "Owner".
Any solutions? Thanks.
You could achieve the same results with a GAM command like:gam all users show filelist query "'exte...@vendor.com' in writers or 'exte...@vendor.com' in readers" id | gam csv - gam user ~Owner delete drivefileacl ~id exte...@vendor.com
The first command will generate a CSV list of all files shared with the vendor email address (read or write access) for all users in your domain. If you have lots of users in your domain it's going to take awhile to generate this list. The 2nd command after the | pipe reads in this CSV list and performs the delete ACL operation for each and every file that is shared with the vendor.Perfect for a cron job...Do notice the double quotes around the whole query and the single quotes around the email addresses...More details about how to use the Drive file list query syntax are at:
Jay Lee
On Thu, Jul 24, 2014 at 7:35 PM, NicholasT <nich...@nstek.com.au> wrote:
Hi John,I recently needed to do a similar thing for all users on a small domain. I ended up using the General Audit Tool (GAT) for Google Apps on the free 28 day trial period and I would use this again even for the cost. Its cheap, simple and did the job with little time on my part. Although, it does take some time to enumerate through all users/docs and capture the data for reporting and updating.I don't believe there is a single remove drivefileacl on all files in my domain for user X command so you're going to have to write a script that essentially iterates through all docs (loop gam show filelist per user), grabs permissions per doc (gam show drivefileacl) and run delete drivefileacl for any docs that share to user x. If you have a lot of users / docs then that might be interesting and a lot of API calls. Perhaps a Google Apps Script straight to the API would be a better performing option but then that's what the GAT tool probably does ;-)NicholasOn Thursday, July 24, 2014 9:40:13 AM UTC+10, John Plut wrote:We had a contractor that was using an external account and many files were shared with them. I want to globally remove the person from all files they were shared with.It looks like you can do this with some of the pay management tools, I am hoping I can do this with GAM.Any help would be appreciated, thanks.
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/88692822-e8e8-41cb-b00e-358997606164%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/88b0d43c-4160-413f-86de-cc5918db5ebe%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/c5XOGA6o_qM/unsubscribe.
To unsubscribe from this group and all its topics, 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/97af4147-5e4c-47ca-a6af-edd75a02e6cb%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "GAM for G Suite" 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/CAGMFYt4%2BSpxG48F-TrxJWFg551ocWft0A2r0e6cSB8DjyjVY3g%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/c5XOGA6o_qM/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAGPzzFuS0mpu69XLOurSAmHnJwatZdH_Lp08ESKZ_QL0sNLrZA%40mail.gmail.com.
gam all users show filelist fullquery "'me' in owners and ('compt...@vendor.com' in writers or ' compt...@vendor.com ' in readers)" id | gam csv - gam user "~Owner" delete drivefileacl ~id compt...@vendor.com
--
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/45f6d64e-57fd-4328-98e6-e210d3601287n%40googlegroups.com.
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/385540d3-2013-4178-a3fb-3b86ada4ffe6n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/8c912f48-7263-4fa2-a5c4-f84c51784bd5n%40googlegroups.com.
The contents of this message and any attachments to it are private, confidential and may be the subject of legal privilege. Telegraph Media Group Limited is registered in England and Wales (company number 451593) at 111 Buckingham Palace Road, London, SW1W 0DT. If you are not the intended recipient of this email please inform us and the sender immediately. You must not take any action based upon the contents of this email, nor copy it or show it to anyone. Any unauthorised disclosure, use or dissemination of the whole or part of the message contained in such email is prohibited. Any views or opinions expressed do not necessarily represent those of Telegraph Media Group Limited. It is the recipient’s responsibility to carry out any virus checking.
--
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/e5bbbce8-0b05-4fb7-9986-2829e47506b1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/c774e749-c60c-49f4-af3c-8a49824a20c1n%40googlegroups.com.
gam user tra...@domain.com print filelist fields id,name,driveid corpora onlyshareddrives query "'exte...@vendor.com' in readers or 'exte...@vendor.com' in writers" | gam csv - gam user "~Owner" delete drivefileacl ~id exte...@vendor.com"
Ross
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/286e3bd1-e8a7-45ee-b964-33e51388d9cbn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/c5XOGA6o_qM/unsubscribe.
To unsubscribe from this group and all its topics, 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/286e3bd1-e8a7-45ee-b964-33e51388d9cbn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/4a7a3133-b73f-4687-9a26-7a6f52ae3cdfn%40googlegroups.com.
Thanks,
Braden Vawdrey
System Administrator at Pattern
![]()
![]()
*** We are excited to welcome all of you to our 35th Annual International Conference & Expo, taking place from January 22nd to 26th, 2025 in Cleveland, OH. For more information about the association, please visit www.acctinfo.org. We look forward to seeing you there! ***
Notice of Confidentiality
The information contained in and transmitted with this e-mail is CONFIDENTIAL. It is intended only for the individual or entity designated. You are hereby notified that any dissemination, distribution, copying, or use of or reliance upon the information contained in and transmitted with this email by or to anyone other than the recipient designated above by the sender is UNAUTHORIZED and STRICTLY PROHIBITED. If you have received this email in error, please notify this office immediately and upon authorization by sender destroy the information contained herein.
--
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/2ad059ad-edda-4343-bfda-59fd6c2b7737n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e58309fc-d7ae-408f-ae7b-d65b20d24397n%40googlegroups.com.