We had a principal who passed away a couple of years ago. The Google account was suspended then archived and ownership of her files was transferred to the new principal. However, files that had been shared with her previously still show her account in the list when you go to share settings. This can be a little bit of an emotional punch for some of our staff if they see her name pop up unexpectedly like that. We don’t want to delete the account at this point but also do not want her name popping up if someone goes into a file that had been previously shared with her. Is there a simple way to do this with GAM? I have GAM but have very little experience with it.
gam config auto_batch_min 1 num_threads 10 redirect csv ./OldPrinShares.csv multiprocess redirect stderr - multiprocess all users print filelist fields id,name,mimetype,basicpermissions query "'old...@domain.com' in readers or 'old...@domain.com' in writers" pm type user emailaddress old...@domain.com em pmfilter oneitemperrow
Review OldPrinShares.csv.
This command will delete the shares.
gam config num_threads 10 redirect stdout ./DeleteOldPrinShares.txt multiprocess redirect stderr stdout csv OldPrinShares.csv gam user "~Owner" delete drivefileacl "~id" "id:~~permission.id~~"
Ross
On Jun 25, 2026, at 9:28 AM, Eric Tietze <eti...@jebc5.k12.mo.us> wrote:
We had a principal who passed away a couple of years ago. The Google account was suspended then archived and ownership of her files was transferred to the new principal. However, files that had been shared with her previously still show her account in the list when you go to share settings. This can be a little bit of an emotional punch for some of our staff if they see her name pop up unexpectedly like that. We don’t want to delete the account at this point but also do not want her name popping up if someone goes into a file that had been previously shared with her. Is there a simple way to do this with GAM? I have GAM but have very little experience with it.
--
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/5b1d91cf-9ca3-4c70-8699-97692ef0387dn%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/N4uIikbtTro/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/F6CB690C-8CAD-43A7-92A0-0C5421D59455%40gmail.com.