Add Folder to Google Drive for all Users

24 views
Skip to first unread message

Warren Blowes

unread,
May 12, 2025, 4:19:19 AMMay 12
to GAM for Google Workspace
Hi Ross/all,

This may be a simple request but haven't found anything yet that specifically matches the requirement.  We need to add a folder (called _MWP_Migration) to the root of the Google Drive for all users in a domain - any advice appreciated...

Piers Newman

unread,
May 12, 2025, 5:18:39 AMMay 12
to google-ap...@googlegroups.com
Hi,

gam all users add drivefile drivefilename "_MWP_Migration" mimetype gfolder 

HTH



On Mon, 12 May 2025 at 09:19, 'Warren Blowes' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:
Hi Ross/all,

This may be a simple request but haven't found anything yet that specifically matches the requirement.  We need to add a folder (called _MWP_Migration) to the root of the Google Drive for all users in a domain - any advice appreciated...

--
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 visit https://groups.google.com/d/msgid/google-apps-manager/2dcbfb3b-38c2-476d-9737-12f4fec81c18n%40googlegroups.com.

The Uckfield College Martlet represents the ceaseless pursuit of learning, virtue, perseverance, endeavour and hard work.

CONFIDENTIALITY NOTICE: This email and any attachments are confidential and intended solely for the recipient. If you are not the intended recipient, any use, dissemination, or copying of this communication is strictly prohibited. If received in error, please notify the sender and delete this email.


The views expressed in this email are not necessarily those of Uckfield College.


Email Security: Email is not a secure communication medium. Please be cautious of links and attachments. All communications to/from Uckfield College may be monitored in accordance with UK data protection laws.


Phishing Awareness:  Be wary of requests for sensitive information.  Uckfield College will never ask for your password or financial details via email.


Piers Newman

unread,
May 12, 2025, 7:05:32 AMMay 12
to google-ap...@googlegroups.com
Forgot to add,

use noduplicate at the end of the command to prevent duplicate folders being created if one called that already exists. So  gam all users add drivefile drivefilename "_MWP_Migration" mimetype gfolder noduplicate

You can test this at a smaller scale by applying to a OU or a group rather than all users by replacing gam all users with gam ou "/Path/To/TestOU" or gam group <TestGroupEmail> 

Warren Blowes

unread,
May 12, 2025, 7:12:30 AMMay 12
to google-ap...@googlegroups.com
That's great Piers, many thanks for the assist!



--
Kind Regards.

Warren Blowes
Information Services
Int: 3101
Ext: +44 (0)2392 843101

Maj. Marshall Giguere

unread,
May 12, 2025, 8:52:27 AMMay 12
to google-ap...@googlegroups.com

Create the folder
gam user shared_driv...@example.com create drivefile mimetype folder drivefilename "ALL_IN_DOMAIN" parentid "<shared drive ID>"

Add drivefile ACL, you will need the ID of the folder
gam user orga...@example.com add drivefileacl id:"<ID of folder>" domain example.com role writer

you can change the role to whatever you prefer.


On Mon, May 12, 2025 at 2:19 AM 'Warren Blowes' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:
Hi Ross/all,

This may be a simple request but haven't found anything yet that specifically matches the requirement.  We need to add a folder (called _MWP_Migration) to the root of the Google Drive for all users in a domain - any advice appreciated...

--

Warren Blowes

unread,
May 12, 2025, 10:48:59 AMMay 12
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages