How to get print / show shared drive ID using GAM Standard

102 views
Skip to first unread message

Muhammad Saka Syauqi

unread,
Feb 6, 2024, 11:01:29 PM2/6/24
to GAM for Google Workspace
Hi team
I want to create bulk share drive and assign group as manager and I want to do that in one time execution
gam csv createshareddrive.csv gam user saka...@demo.eikontechnology.com add shareddrive ~sharedrivename | gam user saka...@demo.eikontechnology.com print shareddrives | gam user saka...@demo.eikontechnology.com add drivefileacl ~id group acl.sha...@demo.eikontechnology.com role organizer
Screenshot_2.png

FYI I am using GAM Standard 6.58


Many Thanks 
Regards

Ross Scroggs

unread,
Feb 6, 2024, 11:26:44 PM2/6/24
to google-ap...@googlegroups.com
You left out csv - gam after the second |
gam csv createshareddrive.csv gam user saka...@demo.eikontechnology.com add shareddrive ~sharedrivename | gam user saka...@demo.eikontechnology.com print shareddrives | gam csv - gam user saka...@demo.eikontechnology.com add drivefileacl ~id group acl.sha...@demo.eikontechnology.com role organizer

Ross
----
Ross Scroggs



On Feb 6, 2024, at 8:01 PM, 'Muhammad Saka Syauqi' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hi team
I want to create bulk share drive and assign group as manager and I want to do that in one time execution

<Screenshot_1.png>

And here is command I have used
gam csv createshareddrive.csv gam user saka...@demo.eikontechnology.com add shareddrive ~sharedrivename | gam user saka...@demo.eikontechnology.com print shareddrives | gam user saka...@demo.eikontechnology.com add drivefileacl ~id group acl.sha...@demo.eikontechnology.com role organizer
<Screenshot_2.png>

FYI I am using GAM Standard 6.58


Many Thanks 
Regards

NOTICE: This e-mail and any files transmitted with it may contain confidential information, 
and are intended solely for the use of the individual or entity to whom they are addressed. 
Any retransmission, dissemination or other use of the information by persons other than 
the intended recipient or entity is prohibited. If you receive this e-mail in error please 
contact the sender by return e-mail and delete the material from your system. Thank you.

--
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/8d108f4c-020b-4d4a-892e-e7dd77366faen%40googlegroups.com.
<Screenshot_1.png><Screenshot_2.png>

Muhammad Saka Syauqi

unread,
Feb 6, 2024, 11:43:54 PM2/6/24
to google-ap...@googlegroups.com
HI Mr Ross
I Still get an error
gam csv createshareddrive.csv gam user saka...@demo.eikontechnology.com add shareddrive ~sharedrivename | gam user saka...@demo.eikontechnology.com print shareddrives | gam user saka...@demo.eikontechnology.com add drivefileacl ~id group acl.sha...@demo.eikontechnology.com role organizer


ERROR: 404: File not found: ~id. - notFound
image.png

Regards


Saka Syauqi
Engineer
 


Cloud Solutions | IT Procurement | Web Development
Ph: (021) 5086 1517, (031) 731 3390

www.eikontechnology.com  blog.eikontechnology.com



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/yNoQFsYfTV4/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/9C83F823-AF1A-4530-9910-07EFCB9E82CB%40gmail.com.

Ross Scroggs

unread,
Feb 7, 2024, 12:01:55 AM2/7/24
to google-ap...@googlegroups.com
You didn't make the change I showed you:
1) Change the first | to &
2) Add gam csv - after the second |
gam csv createshareddrive.csv gam user saka...@demo.eikontechnology.com add shareddrive ~sharedrivename & gam user saka...@demo.eikontechnology.com print shareddrives | gam csv - gam user saka...@demo.eikontechnology.com add drivefileacl ~id group acl.sha...@demo.eikontechnology.com role organizer
----
Ross Scroggs



On Feb 6, 2024, at 8:43 PM, 'Muhammad Saka Syauqi' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

HI Mr Ross
I Still get an error
gam csv createshareddrive.csv gam user saka...@demo.eikontechnology.com add shareddrive ~sharedrivename | gam user saka...@demo.eikontechnology.com print shareddrives | gam user saka...@demo.eikontechnology.com add drivefileacl ~id group acl.sha...@demo.eikontechnology.com role organizer


ERROR: 404: File not found: ~id. - notFound
<image.png>

Muhammad Saka Syauqi

unread,
Feb 7, 2024, 2:06:22 AM2/7/24
to google-ap...@googlegroups.com
Dear Mr Ross
Thank you so much for your help
It Works


Regards
Saka Syauqi
Engineer
 


Cloud Solutions | IT Procurement | Web Development
Ph: (021) 5086 1517, (031) 731 3390

www.eikontechnology.com  blog.eikontechnology.com


Maj Marshall Giguere

unread,
Feb 7, 2024, 10:21:34 AM2/7/24
to google-ap...@googlegroups.com
You need to tell the next gam command in the pipeline to expect input from STDIN using "csv -".  So the next commands in the pipeline would look like this:
| gam csv - gam user ...| gam csv - gam ....

Reply all
Reply to author
Forward
0 new messages