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
12
votes
5 answers

How to access shared Google Drive files through Python?

I try to access shared Google Drive files through Python. I have created an OAuth 2.0 ClientID as well as the OAuth consent. I have copy-pasted this code:…
10
votes
1 answer

How to upload file to Group Drive (Shared Drive) with Google Drive API V3?

I have a question how do I upload a file to Group Drive (Shared Drive) with Google Drive API? I have tried parent id for that folder (Group Drive) but that does not seem to work. public uploadFile(stream, totalSize, mime, fileName, parentId?,…
7
votes
1 answer

Get the list of action items from Google Drive API

Hi, everyone. I have been trying to use Google Drive API for getting a list with the action items assigned in all files (docs or spreadsheets) in my company's domain using Spring Boot and the google-api-services-drive, but I have faced some…
6
votes
1 answer

Team Drive vs Google Drive shared folders for team repository. Is Team Drive worth it at the moment?

I am just trying to understand advantages of going to Team Drive for team repository on G suite vs using just shared folder on Google Drive. By searching different sources and doing testing I found the following results so far. Frankly speaking…
Evgeny
  • 91
  • 1
  • 7
6
votes
1 answer

File movement between Google Shared Drive (team drive) folders using Apps Script

I am creating a workflow for Shared Drive (Team Drive) where I have 3 folders under team drive: TO BE APPROVED APPROVED REJECTED I am sending a document from TO BE APPROVED folder for approval, if user approves it then this document should move to…
5
votes
0 answers

DOMException Error: Is Google Drive still supporting Embed Link with the /preview?

If you open a PDF file from Google Drive in a new window and go to the vertical 3 dots menu, you still can see the Embed item... option being made available to you. As such, I assume that Google still allows the PDF files to be embedded as shown…
Antonio Ooi
  • 1,601
  • 1
  • 18
  • 32
5
votes
1 answer

Upload File to Google-drive Teamdrive folder with PyDrive

I have been successfully uploading files to a google-drive-folder with PyDrive. But, when it comes to uploading files to a folder in a google-drive-teamdrive-folder which is shared with me, the following code is not working. from pydrive.auth import…
Raad A.
  • 53
  • 1
  • 8
4
votes
1 answer

Google Drive create new folder in shared drive

I'm able to create a new folder within a parent folder on my personal Google Drive, but when I try to do it in a shared drive, I get this error:
jack
  • 105
  • 4
  • 11
4
votes
1 answer

"Shared Drive" support in Google Apps Script

I am writing a JavaScript tool in Google Apps Script to check some properties of documents, like "are all links valid", "are permissions set correctly", and so on. I am using the API documented in…
4
votes
1 answer

search file inside shared drive By id File using the Query filter

i want to check if a folder belongs to shared drive or not . I implement this code but it return Error 400 invalid value on Query. var request = service.Files.List(); var query = "id='" + driveFileId + "'"; …
4
votes
2 answers

How can I access a Team Drive instead of personal Google Drive using PyDrive?

I am trying to use PyDrive to programmatically list and then download files stored on a Team Drive that I can access in a browser. When I do this: from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive gauth = GoogleAuth() drive…
I Z
  • 5,719
  • 19
  • 53
  • 100
4
votes
1 answer

Google DRIVE API V3 - Get a root folder ID with nodejs

I need to get root folder id and filter folders which have root folder as their parent folder. Using Nodejs and google drive API v3 . This is my code and how I change this code to get root folderId? const service = google.drive('v3'); …
4
votes
1 answer

GAS doesn't allow pragrammably create installable trigger in Team Drive

My company has been trying to move our processes online using G Suite. For some reason, the GAS wouldn't allow me to set up a trigger programmably and returns an "Exception: Action not allowed". See below screenshots 1-3. [Asking for…
3
votes
1 answer

How to delete a file in a google drive shared drive folder using php?

All I need is to delete a file which is inside my shared drive folder using google/apiclient using php , this is my code below . session_start(); require __DIR__ . '/vendor/autoload.php'; // ready the API to upload to drive use Google\Client; use…
jasonzs
  • 55
  • 4
3
votes
1 answer

Google Drive: Drive.Files.list() not finding file by name

I need to get some file id's from Google Drive every day searching by filename, but Drive.Files.list() isn't working as expected. API works fine for some files, but some ones returning null (both files are in same folder level). If i modify the…
1
2 3
25 26