List All Shared (Team) drives within organization only

2,628 views
Skip to first unread message

Austin Showalter

unread,
Mar 13, 2020, 7:52:38 AM3/13/20
to GAM for G Suite
Hi,

I am trying to return all Shared drive IDs with current members.  Currently the only way I see to do it is with this command:
gam.py all users print teamdrives

The above command loops through all users and prints the Shared drive IDs that the user has access to.  This includes Shared drives from outside the organization.  In my particular case I need only the Shared drives within the organization.  It looks like Google has an API that lists only Shared drives from within the organization, is there anyway to do this with GAM?

Ross Scroggs

unread,
Mar 13, 2020, 5:20:45 PM3/13/20
to google-ap...@googlegroups.com
Austin,

With Advanced GAM (https://github.com/taers232c/GAMADV-XTD3) what you want is simple.

Write list of Shared Drives to file
gam redirect csv TeamDrives.csv print teamdrives

Write list of Shared Drive Permissions to file

gam redirect csv ./TeamDriveACLs.csv print teamdriveacls


Ross

--
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/ee1aa4a8-da2a-4ab2-b58d-4c55eec69eb1%40googlegroups.com.


--

Austin Showalter

unread,
Mar 16, 2020, 8:21:10 AM3/16/20
to GAM for G Suite
Thanks Ross,
I have not used Advanced GAM, can it run beside GAM or does it need it's own setup with authentication keys etc.


On Friday, March 13, 2020 at 5:20:45 PM UTC-4, Ross Scroggs wrote:
Austin,

With Advanced GAM (https://github.com/taers232c/GAMADV-XTD3) what you want is simple.

Write list of Shared Drives to file
gam redirect csv TeamDrives.csv print teamdrives

Write list of Shared Drive Permissions to file

gam redirect csv ./TeamDriveACLs.csv print teamdriveacls


Ross

On Fri, Mar 13, 2020 at 4:52 AM Austin Showalter <austin....@emu.edu> wrote:
Hi,

I am trying to return all Shared drive IDs with current members.  Currently the only way I see to do it is with this command:
gam.py all users print teamdrives

The above command loops through all users and prints the Shared drive IDs that the user has access to.  This includes Shared drives from outside the organization.  In my particular case I need only the Shared drives within the organization.  It looks like Google has an API that lists only Shared drives from within the organization, is there anyway to do this with GAM?

--
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-manager+unsub...@googlegroups.com.


--
Ross Scroggs

Ross Scroggs

unread,
Mar 16, 2020, 8:30:43 AM3/16/20
to google-ap...@googlegroups.com
Austin,

Advanced GAM can be used to replace Standard GAM or can run in parallel.
It uses the same project client_secrets.json and oauth2service.json files. It requires an updated oath.txt file.

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/ddf83343-d137-4f98-826d-9eb29ebf7ddb%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages