Google Drive Permissions

462 views
Skip to first unread message

Christian Reynolds

unread,
Mar 21, 2024, 2:43:33 PM3/21/24
to GAM for Google Workspace
Hello everyone,

I'm new with GAM, was looking to list the permissions for all the shared drives in Google Workspace but noticed that the commands (in the wiki) to get permissions related to a drive have to be specified by User. 

Does GAM have a solution to get the permission list for one or more shared drives?

Thank you

Ross Scroggs

unread,
Mar 21, 2024, 3:22:25 PM3/21/24
to google-ap...@googlegroups.com

--
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/56635093-042b-497b-ae90-547e00a4966cn%40googlegroups.com.


--

Christian Reynolds

unread,
Mar 25, 2024, 1:44:32 PM3/25/24
to GAM for Google Workspace
All of the commands seem to be tied to a user.

GAM USER...

Instead I need to retrieve permissions for the Shared Drive.

This shared drive is being shared with these individuals, groups etc.

Ross Scroggs

unread,
Mar 25, 2024, 2:01:17 PM3/25/24
to google-ap...@googlegroups.com
The introduction says the the user is optional in which case the supper admin is used.

Send me a Meet/Zoom invitation.

Ross



--

Patrick Haley

unread,
Mar 25, 2024, 3:27:19 PM3/25/24
to GAM for Google Workspace
gam print drivefileacls <Shared Drive ID> oneitemperrow

Patrick Haley

unread,
Mar 25, 2024, 3:30:09 PM3/25/24
to GAM for Google Workspace
or if you want something easier to read try:

gam print drivefileacls <Shared Drive ID> oneitemperrow fields displayname,role todrive

The Drive ID is in the URL.

Christian Reynolds

unread,
Mar 29, 2024, 12:24:22 PM3/29/24
to GAM for Google Workspace

Sorry didn't see the response until today.  I tried the command and it showed this: (i hid the drive id)

christianreynolds@Christians-MacBook-Air ~ % gam print drivefileacls 0A...VA oneitemperrow

ERROR: drivefileacls is not a valid argument for "gam print"

Ross Scroggs

unread,
Mar 29, 2024, 12:26:03 PM3/29/24
to google-ap...@googlegroups.com
What is: gam version

Ross
----
Ross Scroggs



Christian Reynolds

unread,
Mar 29, 2024, 1:11:16 PM3/29/24
to GAM for Google Workspace

GAM 6.58 - https://jaylee.us/gam - pyinstaller

Jay Lee <jay...@gmail.com>

Python 3.11.3 64-bit final

google-api-python-client 2.86.0

MacOS Ventura 13.3.1 arm64

Path: /Users/christianreynolds/bin/gam

Ross Scroggs

unread,
Mar 29, 2024, 1:14:55 PM3/29/24
to google-ap...@googlegroups.com
Try this; replace ad...@domain.com with an actual super admin email address

gam user ad...@domain.com print drivefileacls 0A...VA asadmin


Ross
----
Ross Scroggs


Christian Reynolds

unread,
Mar 29, 2024, 1:19:40 PM3/29/24
to GAM for Google Workspace

ERROR: drivefileacls is not a valid argument for "gam <users> print"

Ross Scroggs

unread,
Mar 29, 2024, 1:22:54 PM3/29/24
to google-ap...@googlegroups.com
Try:

gam user ad...@domain.com show drivefileacl 0A...VA asadmin


Ross
----
Ross Scroggs


Christian Reynolds

unread,
Mar 29, 2024, 1:35:56 PM3/29/24
to GAM for Google Workspace

christianreynolds@Christians-MacBook-Air ~ % gam user c***@t***ch.com show drivefileacls 0A***PVA  asadmin


ERROR: drivefileacls is not a valid argument for "gam <users> show

Christian Reynolds

unread,
Mar 29, 2024, 5:13:15 PM3/29/24
to GAM for Google Workspace
no dice.

any other suggestions? I can do a Google Meet session with you if you want

Maj Marshall Giguere

unread,
Mar 29, 2024, 6:57:36 PM3/29/24
to google-ap...@googlegroups.com
Chris;

I think the hint may be in the error message.  The syntax listed on the standard gam website is: "gam user <user email> show drivefileacl <file id> [asadmin]", so I'm thinking you need to change the keyword to "drivefileacl", loose the "s".



Reply all
Reply to author
Forward
0 new messages