Questions tagged [google-drive-shared-drive]

Use this tag for questions related to items stored in a Google Workplace "Shared Drive" (formerly Team Drive). Shared Drives offer members a shared directory in which all files and folders are owned by the team, rather than individual users. Special support is needed in applications due to the different ownership and file directory model.

Shared Drives (formerly Team Drives) are a type of organisation space within Google Drive that supports files owned by an organisation rather than an individual user. Shared Drive files must have exactly one parent folder, much like files on a hard drive. This means that Shared Drive files belong to a single Shared Drive and are located in a single location within that Shared Drive. Having a single location simplifies permission rules for Shared Drive files.

390 questions
2
votes
2 answers

Checking if google drive file is a Google Docs, Sheets, and Slides?

How do we know if a google drive file is a Google Docs, Sheets, and Slides? Any patterns? { "kind": "drive#file", "id": "xxxxxxxxxxxxxxxxxxxxxxxx", "etag":…
Luk Aron
  • 1,235
  • 11
  • 34
2
votes
1 answer

Can a Google Shared Drive be indexed by Windows Indexing?

I have a windows application that uses the Dir function to search for an item in a folder like this: If Dir("X:\Maps\" & MapNum & ".jpg") <> "" Then Me![myMap].Picture = "X:\Maps\" & MapNum & ".jpg" Else Me![myMap].Picture =…
DanielAttard
  • 3,467
  • 9
  • 55
  • 104
2
votes
1 answer

Fetching Google Sheet data from locally mounted drive via gspread

I am working on a Google Colab notebook that requires the user to mount google drive using the colab.drive python library. They then input relative paths on the local directory tree (/content/drive/... by default on that mount) to files of interest…
2
votes
0 answers

Is there any way to receive a notification when an external user (not G-Suite) changes a Shared Drive content?

The goal is to receive a push notification from Google when an external user changes the content of the drive that has been shared with him by a G-Suite (or Google Workspace) account member. I've already tried the following: Watch every user of the…
2
votes
2 answers

How to copy a folder from Google Drive to create a new folder in Google drive using JS

I want to copy folders into a Master Folder within Google Drive. My main issue is creating a function when one column is not blank and another column is blank. Once, a new folder is created it has to paste in the folder URL in one of the…
2
votes
0 answers

Transfer ownership Personal Drive data to Google Workspace Business Shared Drive

Before the possibility of Google Suite Team Drives / Google Workspace Shared Drives we started using a specific GSuite Account (AccountB) that is owner of the data. We now want to transfer it to Workspace Shared Drives. I can easily transfer folders…
MKZ
  • 166
  • 1
  • 12
2
votes
1 answer

Upload gcs files to google drive using airflow

Hi I am trying to upload a file from GCS to Gdrive using airflow.contrib.operators.gcs_to_gdrive_operator import GcsToGDriveOperator This is how the dag looks like copy_to_gdrive = GcsToGDriveOperator( task_id="copy_to_gdrive", …
2
votes
1 answer

Google "shared drive" vs "shared with me"

Can someone explain how Google's "shared drive" and "shared with me" directories differ? One of my colleagues just granted me access to the team's files, but I noticed they don't fall under my usual "shared drive". Instead, I have to access…
ThatsRightJack
  • 721
  • 6
  • 29
2
votes
1 answer

Uploading data to shared drive using service account in java

I want to upload the files to shared drive using java. I have created a service account and I have shared the shared-drive (name is DB-Drive) with the service account's address. Global variables private static HttpTransport httpTransport; private…
2
votes
1 answer

App script to create folders fails to run in shared drive

Google app script newbie here. I found this code which helps create folders in my personal Google drive with using inputs from Google sheet (credit: Google Sheet Community on Youtube). However, when I tried to recreate this app in a shared Google…
2
votes
1 answer

Cannot update or delete an inherited permission on a shared drive item

Use case: * Created a shared drive "Demo_Folder" * For "User A" - gave Content manager access. For "User B" - gave Viewer access. * Uploaded 3 files (file1.sv, file2.csv and file3.csv) to Demo_Folder * For file3.csv, I would like to provide editor…
2
votes
1 answer

useDomainAdminAccess creates error in Google Drive API using service account authentication

I am creating a service to watch some of my Shared Drive folders on Google Drive. I am using a service account for authentication as this is a service running on a server. Here is my code snippet: const { google } = require("googleapis"); const…
bteres
  • 609
  • 4
  • 14
2
votes
1 answer

Google Apps Script - Impossible operation with an element inside a shared drive

I need your help on something. I did a function which goal is to make a copy of a template file and put it in a folder in a shared drive. The problem is that the program returns : "Exception: This operation cannot be performed on an item in a…
2
votes
1 answer

Setting a role as fileOrganizer for shared/team google drive item failing for shared/team drive

Trying to set permission as "fileOrganizer" for a user on a shared google drive folder, but the v3 (and v2) API giving error FileOrganizer role is only valid for shared drives, and I could NOT find a way to specify that the folder is on a shared…
Ajay Bhosale
  • 1,872
  • 24
  • 35
2
votes
1 answer

Domain SuperAdmin using AppScript getting error: API call to drive.teamdrives.insert failed with error: Insufficient permissions for this file

I'm working on a Google App Script that needs to create new Google TeamDrives. I'm a superadmin at my domain and when I try to execute the code (written as suggested by App Script code completion), I get an error: API call to…