GAMADV-XTD3 - Team Drives

104 views
Skip to first unread message

Prashant Nagaraj

unread,
Feb 19, 2024, 3:54:57 AM2/19/24
to GAM for Google Workspace
Hello All,

I am trying to run the below command :
====
gam redirect csv c:\temp\2024-02-19-TeamDriveACLs.csv multiprocess csv c:\temp\2024-02-19-TeamDrives.csv gam print drivefileacls "~id" fields emailaddress,role,type
===

The above command works in GAM Version : GAMADV-XTD3 6.68.07

Fails with below errors in GAM Version : GAMADV-XTD3 6.69.00 , the python version is the same in both systems, which is Python 3.12.2 64-bit final

Errors while I run the above command are :
====
gam redirect csv c:\temp\2024-02-19-TeamDriveACLs.csv multiprocess csv c:\temp\2024-02-19-TeamDrives.csv gam print drivefileacls "~id" fields emailaddress,role,type

2024-02-19T08:52:05.311+00:00,0/150,Using 20 processes...

Command: gam print drivefileacls ABC123 fields emailaddress role >>>type<<<
ERROR: Invalid choice (type): Expected <commenter|contentmanager|contributor|editor|fileorganiser|fileorganizer|manager|
organiser|organizer|owner|read|reader|viewer|writer>
Help: Syntax in file D:\scripts\GAMADV-XTD3\GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

Command: gam print drivefileacls ABC1234 fields emailaddress role >>>type<<<
ERROR: Invalid choice (type): Expected <commenter|contentmanager|contributor|editor|fileorganiser|fileorganizer|manager|
organiser|organizer|owner|read|reader|viewer|writer>
Help: Syntax in file D:\scripts\GAMADV-XTD3\GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

Command: gam print drivefileacls ABC12345 fields emailaddress role >>>type<<<
ERROR: Invalid choice (type): Expected <commenter|contentmanager|contributor|editor|fileorganiser|fileorganizer|manager|
organiser|organizer|owner|read|reader|viewer|writer>
Help: Syntax in file D:\scripts\GAMADV-XTD3\GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

Command: gam print drivefileacls ABC123456 fields emailaddress role >>>type<<<
ERROR: Invalid choice (type): Expected <commenter|contentmanager|contributor|editor|fileorganiser|fileorganizer|manager|
organiser|organizer|owner|read|reader|viewer|writer>
Help: Syntax in file D:\scripts\GAMADV-XTD3\GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

.....

Here ABC* are actually drive-file-id's
===

Please help to resolve

Ross Scroggs

unread,
Feb 19, 2024, 1:30:05 PM2/19/24
to google-ap...@googlegroups.com
It's working for me:
C:\Users\Administrator>gam version
GAMADV-XTD3 6.69.00 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.s...@gmail.com>
Python 3.12.2 64-bit final
Windows 2019Server 10.0.17763 SP0 Multiprocessor Free AMD64
Path: C:\GAMADV-XTD3
Config File: C:\GamConfig\gam.cfg, Section: RDS.org, customer_id: my_customer, domain: domain.com
Time: 2024-02-19T06:52:00-08:00

C:\Users\Administrator>gam print drivefileacls 0AJ6mqwXP9wHxUk9PVA fields emailaddress,role,type
Owner,id,permissions,permissions.0.domain,permissions.0.emailAddress,permissions.0.role,permissions.0.type,permissions.1.domain,permissions.1.emailAddress,permissions.1.role,permissions.1.type,permissions.2.domain,permissions.2.emailAddress,permissions.2.role,permissions.2.type,permissions.3.domain,permissions.3.emailAddress,permissions.3.role,permissions.3.type,permissions.4.domain,permissions.4.emailAddress,permissions.4.role,permissions.4.type

Ross
----
Ross Scroggs



--
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/9329f34e-2527-4e68-91b1-214936b88562n%40googlegroups.com.

Prashant Nagaraj

unread,
Feb 20, 2024, 2:34:59 AM2/20/24
to google-ap...@googlegroups.com
The command works in one system and not in another system ... strange .. trying to troubleshoot

.....
Thanks & Regards
Prashant N


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/BFrxWF3SByU/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/E7F29DE2-5682-4558-9165-F5BC5E66C1D4%40gmail.com.

Ross Scroggs

unread,
Feb 20, 2024, 9:27:20 AM2/20/24
to google-ap...@googlegroups.com
Send a Meet/Zoom invitation and I'll try to help.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages