change General access to restricted?

35 views
Skip to first unread message

Brian Pugh

unread,
Aug 7, 2025, 6:53:34 AMAug 7
to GAM for Google Workspace
I've been able to change anyone access but so far cannot change General Access from: Anyonewith the link/Anyone on the internet with the link can view to Restricted. Is this change possible with Gam Avanced.
Thanks very much,

Brian

Ross Scroggs

unread,
Aug 7, 2025, 11:35:10 AMAug 7
to google-ap...@googlegroups.com
If you delete the anyonewithlink ACL the file becomes restricted.

gam user us...@domain.com delete drivefileacl <FileID> id:anyoneWithLink

Ross

--
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/68384158-028b-4ad7-8cc0-97e3c81f6284n%40googlegroups.com.


--
Message has been deleted

Matthew Weiner

unread,
Aug 7, 2025, 10:49:36 PMAug 7
to GAM for Google Workspace
Apologies for piggybacking on this thread but it's exactly what I want to do only for the contents of a shared drive as one of the contributors for some reason set most of their files to public, is there an easy GAM command to do that?

Ross Scroggs

unread,
Aug 7, 2025, 11:11:04 PMAug 7
to google-ap...@googlegroups.com
gam redirect csv ./SDAnyoneShares.csv user orga...@domain.com print filelist select shareddriveid <PutIDHere> fields id,name,mimetype,basicpermissions query "(visibility='anyoneCanFind' or visibility='anyoneWithLink')"  pm type anyone inherited false em pmfilter oneitemperrow

gam redirect stdout ./DeleteSDAnyoneShares.txt multiprocess redirect stderr stdout csv SDAnyoneShares.csv gam user "~Owner" delete drivefileacl "~id" "id:~~permission.id~~"

Ross
----
Ross Scroggs



Message has been deleted

Matthew Weiner

unread,
Aug 8, 2025, 5:06:05 PMAug 8
to GAM for Google Workspace
That worked perfectly, it took quite a while to process but once I got the CSV done it went right through.  Perfect.  Thank you very much!

Just a thought for a future release, you may want to put a progress indicator while it's getting the ACL data as it took over an hour due to the size of this drive and without putting it in debug mode it looks frozen.

Reply all
Reply to author
Forward
0 new messages