Bulk change OU for shared drives

101 views
Skip to first unread message

Muhammad Saka Syauqi

unread,
Sep 11, 2022, 11:02:37 AM9/11/22
to GAM for Google Workspace
Hi there
I hope you are okay
Is there any way to bulk change OU for shared drives using GAM instead?
Thank you very much Screenshot_1.jpg

Ross Scroggs

unread,
Sep 11, 2022, 11:32:33 AM9/11/22
to google-ap...@googlegroups.com
Muhammad,

Make a CSV file SharedDriveOUs.csv with two headers: id,ou; that give the Shared Drive ID and desired OU
id,ou
0AJ6mqwXxxwHxUk9PVA,/Path/to/OU1
0AJ6mqwXyywHxUk9PVA,/Path/to/OU2
...

In the command below, replace ad...@domain.com with a super-admin email address

gam csv SharedDriveOUs.csv gam user ad...@domain.com update shareddrive "~id" ou "~ou" asadmin

Ross

----
Ross Scroggs



On Sep 11, 2022, at 8:02 AM, 'Muhammad Saka Syauqi' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hi there
I hope you are okay
Is there any way to bulk change OU for shared drives using GAM instead?
Thank you very much <Screenshot_1.jpg>

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/e21bdbed-cac4-4159-a51d-8250aded215cn%40googlegroups.com.
<Screenshot_1.jpg>

Muhammad Saka Syauqi

unread,
Sep 11, 2022, 10:26:49 PM9/11/22
to google-ap...@googlegroups.com
Hi Ross
It works
thank you very much
image.png

Could you please help me once more?
1. if I use this common 
gam all users print shareddrives > allshareddrives.csv

it will print all shared drives even if not the organization belong, So how do we print all shared drives that just belong to the organization?

2. and How to print share drives information as like OU, Creator, and shared drives link ?
many thanks
image.png



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/bvqdcC9mU-E/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/A1E5D27B-51F5-436F-8574-03A8987C8DF2%40gmail.com.

Ross Scroggs

unread,
Sep 12, 2022, 7:15:00 PM9/12/22
to google-ap...@googlegroups.com
Muhammed,

Try: gam print shareddrives > allshareddrives.csv

Creator, and shared drives link are not supplied by the API.

Ross



--

Muhammad Saka Syauqi

unread,
Sep 12, 2022, 10:32:59 PM9/12/22
to google-ap...@googlegroups.com
Hi Ross
Thanks for your email

I have tried 
gam print shareddrives > allshareddrives.csv
or 
gam print teamdrives > allshareddrives.csv

but it has an error
image.png

Please advise 
Many Thanks
Regards


Saka Syauqi
Engineer
 


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

www.eikontechnology.com  blog.eikontechnology.com

Ross Scroggs

unread,
Sep 13, 2022, 12:08:00 AM9/13/22
to google-ap...@googlegroups.com
You are running Standard GAM, yiu need Advanced GAM.


Ross
----
Ross Scroggs


On Sep 12, 2022, at 7:32 PM, 'Muhammad Saka Syauqi' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Hi Ross
Thanks for your email

I have tried 
gam print shareddrives > allshareddrives.csv
or 
gam print teamdrives > allshareddrives.csv

but it has an error
<image.png>

Please advise 
Many Thanks
Regards


Saka Syauqi
Engineer
 


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

www.eikontechnology.com  blog.eikontechnology.com

On Tue, 13 Sept 2022 at 06:15, Ross Scroggs <ross.s...@gmail.com> wrote:
Muhammed,

Try: gam print shareddrives > allshareddrives.csv

Creator, and shared drives link are not supplied by the API.

Ross

On Sun, Sep 11, 2022 at 7:26 PM 'Muhammad Saka Syauqi' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:
Hi Ross
It works
thank you very much
<image.png>

Could you please help me once more?
1. if I use this common 
gam all users print shareddrives > allshareddrives.csv

it will print all shared drives even if not the organization belong, So how do we print all shared drives that just belong to the organization?

2. and How to print share drives information as like OU, Creator, and shared drives link ?
many thanks

Muhammad Saka Syauqi

unread,
Sep 13, 2022, 12:09:24 AM9/13/22
to google-ap...@googlegroups.com
Hi ross
Okey thank you for the advice 
Bes Regards

Saka Syauqi
Engineer
 


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

www.eikontechnology.com  blog.eikontechnology.com

Reply all
Reply to author
Forward
0 new messages