Files shared with "anyone in Domain" can View edit

258 views
Skip to first unread message

Melissa Coates

unread,
Jun 10, 2022, 8:21:50 AM6/10/22
to GAM for Google Workspace
Hi

I'm trying to get a list of files shared with "anyone in domain can view/edit" style share setting

I know I can use 
gam ou </Path/To/OU> print filelist fields id,name,permissions,webViewLink pm type anyone withlink true role editor em todrive
to get "anyone with the link can edt" and I've swapped "editor" for "viewer" but I can't figure out how to adjust this gam command from "anyone on the web" to "anyone in our domain"

Hoping someone can assist

And also if you have a similar command I can run on specific Shared Drives that would be great

Thanks very much

Ross Scroggs

unread,
Jun 10, 2022, 10:04:30 AM6/10/22
to google-ap...@googlegroups.com
Melissa,

gam ou </Path/To/OU> print filelist fields id,name,permissions,webViewLink pm type domain domain mydomain.com role editor em query "(visibility='domainCanFind' or visibility='domainWithLink')" todrive


gam ou </Path/To/OU> print filelist select teamdriveid <PutSharedDriveID> fields id,name,permissions,webViewLink pm type domain domainmy domain.com role editor em query "(visibility='domainCanFind' or visibility='domainWithLink')" todrive

Ross

The Kemnal Academies Trust is a charitable company limited by guarantee registered in England and Wales under company number 7348231. Its registered address is The Atkins Centre, Kemnal Technology College, Sevenoaks Way, Sidcup, Kent DA14 5AA. 

------------------------------ This e-mail, any associated files and the information contained in them are confidential and is intended for the addressee(s) only. If you have received this message in error please notify the originator and delete the email immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. E-mails to and from TKAT and/or its associated Academies are monitored for operational reasons and in accordance with lawful business practices. Any opinions expressed are those of the individual and do not necessarily represent the views of TKAT and/or its associated Academies. Every effort is made to keep the TKAT and/or its associated Academies networks free from computer viruses but TKAT and/or its associated Academies accepts no responsibility for any viruses which might be transferred by this e-mail. ------------------------------


--
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/9c1bd43d-c608-4d9e-93f5-2a301ed5dadcn%40googlegroups.com.

Melissa Coates

unread,
Jun 10, 2022, 10:10:59 AM6/10/22
to google-ap...@googlegroups.com
Thanks very much for such a swift reply.  I will give them a full try out on Monday (these may take some time with some of the drives and accounts...)


Melissa Coates  
TKAT Software Technician

M: 07732 405 816
W:  www.tkat.org  
A:  The Atkins Centre, Sevenoaks Way, Sidcup, Kent, DA14 5AA





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/u0oqXES5D8o/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/B7B994CF-BBC5-4507-BF04-8A84BE21A004%40gmail.com.

Melissa Coates

unread,
Jun 14, 2022, 10:45:25 AM6/14/22
to GAM for Google Workspace
Thanks for your help, I'm trying to run the Shared Drive version, and it's coming up with something like 
"Got 7 Drive Files/Folders that matched query (((visibility='domainCanFind' or visibility='domainWithLink'))) for us...@domain.org..."
But the Sheets it opens is blank with only the header row.

Am I doing something wrong?  Or is there something else going on, surely there should be 7 rows of data?

Running :
gam ou "Path/to/ou" print filelist select teamdriveid <TeamDriveID> fields id,name,permissions,webViewLink pm type domain domain <my main domains> role editor em query "(visibility='domainCanFind' or visibility='domainWithLink')" todrive

Thank you

Ross Scroggs

unread,
Jun 14, 2022, 10:55:12 AM6/14/22
to google-ap...@googlegroups.com
Melissa,

Contact me directly; send a Meet/Zoom invitation.

Ross

Reply all
Reply to author
Forward
0 new messages