How to list all shared drives ?

Former Community Member
Not applicable

Hi,

How do I list ALL Shared Drives regardless of whether they have users or managers?
Using "gam all users print teamdrives" does not list the shared drives if they don't have any users.
And another problem is that it does not list the drives with spaces in their names.

So how can I get full list of Shared Drives?

Cheers,
Arto

Solved Solved
0 6 18.7K
1 ACCEPTED SOLUTION

I'm using gamadv-xtd3 running in cloud shell, and "gam print teamdrives"  appears to show all shared drives regardless of members and spaces.

You can also search for specific criterias, eg drives with no members or no manager:

gam print teamdrives query "memberCount = 0"

gam print teamdrives query "organizerCount = 0"

You can also append "todrive" to the command to get a spreadsheet with the info directly in your drive.

View solution in original post

6 REPLIES 6

I'm using gamadv-xtd3 running in cloud shell, and "gam print teamdrives"  appears to show all shared drives regardless of members and spaces.

You can also search for specific criterias, eg drives with no members or no manager:

gam print teamdrives query "memberCount = 0"

gam print teamdrives query "organizerCount = 0"

You can also append "todrive" to the command to get a spreadsheet with the info directly in your drive.

Hello!

That's easy.

Go to Apps > Google Workspace > Drive > Manage Shared Drive

All shared drives created in you org are reported there and you can do actions too.

Hope it helps.

Former Community Member
Not applicable

Hello,
Thanks for your replies.
I will check this gamadv-xtd3.
I'm currently running GAM locally in a Win10 workstation. Can I use the current configuration files, oauth2.txt, client_secrets.json and oauth2service.json with new installation of gamadv-xtd3?

Arto

Follow this for upgrade instructions https://github.com/taers232c/GAMADV-XTD3#installation---upgrading-from-standard-gam
Not really in the scope of the original question tho ๐Ÿ™‚

We have a tool that will list all internal and external Shared Drives.

See https://www.patronum.io

 

paul_lees_0-1650537678127.png

 

is there a way to remove all shared drives with 0KB in size, aka empty shared drives?

Top Labels in this Space