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
0
votes
0 answers

Does the Google Drive Activity API work for Team Drive?

I could not find a clear answer on the API reference for the Activity API as to if it will also work with Team Drives. I want to be sure that this is possible for Team Drives before I spend all that time trying to integrate it into my…
0
votes
1 answer

How to hide iframe of a embed file from Google Drive folder, if I don't have permission

Is there any way not to display iframe, if I don't have permission for embedded file? My issue is that I am embedding files from different Gdrive folders, not all users have permission to all of them. So instead of You don't have permission message…
DadoH
  • 46
  • 4
0
votes
1 answer

Google Data studios

I just wanted to ask if there was a way of of publishing live data on google docs with data studios on a password restricted site? (Without it being visible online to all users). Users would log in through multiple domains emails such as gmail or…
0
votes
2 answers

How to check whether the file belongs to My Drive or Team Drive

Is there any less time consuming way to check if file's Root Directory is "My Drive" or "Team Drive"? I have tried using file.getParents(); and then iterating through every parent and finally to Root, but this is way too time consuming.
0
votes
2 answers

Discrepancy between Drive Search and DriveApp.searchFiles(target)

Posting this here because I have found no note or solution elsewhere on the web. I am currently experiencing a discrepancy between search results when using the drive search toolbar and the DriveApp.searchFiles() functionality of apps scripts as…
0
votes
1 answer

Can't upload a csv as Google Sheet with special characters in the contents

I've been racking my brain trying to figure out why I can't upload a file to google drive through the API service. I've pin pointed the issue to be related to the special character in Pokémon. If I change that to a regular e, there is no issue…
0
votes
0 answers

Google Drive Picker apiv3 closes upon authorization

I am unable to login to my google drive picker api via firefox. It does work fine in chrome. I am seeing: Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified So I then tried to allow everything for…
0
votes
1 answer

Copy file from Team Drive to My Drive - universal

I am struggling with creating a script that will copy a file located on a Team Drive to My Drive for many users. I do not know how to implement a part to find My Drive of the user, it cannot be a static url address. function saveAsSpreadsheet(){ …
0
votes
1 answer

Illegal Argument exception while connecting to Google drive

In the following code I'm trying to upload an image taken by the camera to Google Drive. I have not used the account picker to pick the account name but I'm passing the account name through the program itself. I'm calling a handleCamera to start…
Rohit S
  • 395
  • 4
  • 18
0
votes
0 answers

Google Team Drive : List changes not giving any result if requested for particular team drive

I tried using change id "1" too. But it returns empty result. However if searched for the whole drive (team drives and My drive) , it is working fine. I tried this on google API sandbox. Gives the same result. Here is the code snippet i used. …
0
votes
0 answers

How to prohibit/workaround recursive rights on Google Drive?

Let's say you have the following structure: - Folder A -- Folder A.A -- Folder A.B -- Folder A.C - Folder B -- Folder B.A -- Folder B.B -- Folder B.C and three users, let's call them User 1, 2 and 3. I want to grant all users access to Folder A…
0
votes
0 answers

Possible to move files from teamdrive to gdrive using google script?

I am the owner of a team drive and my own google drive. I would like to move a certain folder from my team drive to google drive on a weekly schedule. Is this possible to do using google script app? I didn't see any team drive or move…
0
votes
2 answers

Example or template on how to do file upload in Google AppMaker

can anyone share with me the .zip file for Document Approval template because I can't open it since I'm not using GCS but I wanted to go through how they using Drive Picker widget to upload file and so on. another thing is, where the file will be…
0
votes
1 answer

GCP Python - Google TeamDrive API - Permissions

Would really appreciate some advice while working with the Permissions part of the Google Team Drive API: https://developers.google.com/drive/v3/reference/permissions I am currently writing a piece of code which will Create a team drive, create some…
0
votes
0 answers

Not able to search google drive Files with service account

I have a gmail account say abc@gmail.com, I have generated a client secret for using google drive search api. With this Sample Code, I was able to search and get files using my console application. But this code, saves the token on to the drive…
Sonali
  • 2,223
  • 6
  • 32
  • 69