---
title: "Manage Shared Drives in Google Drive with Google Apps Script &#8211; Digital Inspiration"
author: "Martin Hawksey"
date: 2022-04-07T19:43:19+00:00
modified: 2022-04-07T19:43:23+00:00
canonical_url: https://pulse.appsscript.info/p/2022/04/manage-shared-drives-in-google-drive-with-google-apps-script-digital-inspiration/
markdown_url: https://pulse.appsscript.info/p/2022/04/manage-shared-drives-in-google-drive-with-google-apps-script-digital-inspiration.md
categories:
  - "Beginner"
  - "Drive"
  - "Snippet"
  - "Solutions"
  - "V8"
tags:
  - "@labnol"
  - "labnol.org"
featured_image: https://pulse.appsscript.info/files/2022/04/TWFuYWdlIFNoYXJlZCBEcml2ZXMgaW4gR29vZ2xlIERyaXZlIHdpdGggR29vZ2xlIEFwcHMgU2NyaXB0.UWGwYsfqVU2l3ma_YKkYV7gbFBXNaAiz5w2e5UQeTWE.png
description: "\"These code samples show how you can use Google Apps Script to manage and search through the content of shared drives in Google Drive using the Drive API\""
---

# Manage Shared Drives in Google Drive with Google Apps Script &#8211; Digital Inspiration

![Manage Shared Drives in Google Drive with Google Apps Script &#8211; Digital Inspiration](https://pulse.appsscript.info/files/2022/04/TWFuYWdlIFNoYXJlZCBEcml2ZXMgaW4gR29vZ2xlIERyaXZlIHdpdGggR29vZ2xlIEFwcHMgU2NyaXB0.UWGwYsfqVU2l3ma_YKkYV7gbFBXNaAiz5w2e5UQeTWE.png)

> [https://www.labnol.org/shared-drives-google-script-220128](https://www.labnol.org/shared-drives-google-script-220128)Image credit: Amit Agarwal
> These code samples show how you can use Google Apps Script to manage and search through the content of shared drives in Google Drive using the Drive API.

Some handy Google Apps Script snippets from Amit Agarwal for interacting with Shared Drives. The post includes solutions for:

- Create a Shared Drive
- Share a Shared Drive with a User
- List all Shared Drives
- List Files in a Shared Drive
- Move Files in Shared Drives
- Copy Files in Shared Drives

Source: *[Manage Shared Drives in Google Drive with Google Apps Script – Digital Inspiration*](https://www.labnol.org/shared-drives-google-script-220128)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2022/04/manage-shared-drives-in-google-drive-with-google-apps-script-digital-inspiration/](https://pulse.appsscript.info/p/2022/04/manage-shared-drives-in-google-drive-with-google-apps-script-digital-inspiration/)*
