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
1 answer

Google Team Drive file list not showing all files

When using the v3 of Google Drive API for listing files I get either no results or an incomplete list of results when querying a team drive content. I've double-checked: the team drive permissions for the service user I am using I am setting the…
Grzegorz Oledzki
  • 23,614
  • 16
  • 68
  • 106
0
votes
0 answers

Google Team Drive: Not able to see Team Drives option for External user

I have integrated Enabling Team Drive in File picker for Drive. But I am not able to see the Team Drive tab in Invited user's account. var picker = new google.picker.PickerBuilder() …
0
votes
1 answer

Get owner/manager of all the Team Drive within the domain (Google Apps Script)

I am newbie G-Suite domain administrator and I'm trying to fetch all of the team drives within the domain along with its owner. I used google apps script and success to grab all of the team drive name and id. But when I try to reach one of the team…
0
votes
0 answers

Google photos - no teamDriveId but API thinks it a team drive file

OK so i have developed an app with appmaker which can move files from personal drives to team drives and vice versa. This is less trivial than it sounds since the move/copy process is different with personal and team drives. It works fine except…
0
votes
1 answer

Google Drive API v3 update an object if one exists with same name: list 'q' parameter does not work as documented?

I'm trying to update a file if it exists in a particular folder and has a specific name. In this instance the object in question is in a team drive. I followed documentation to compose the q parameter to the list call, tried to switch back to…
0
votes
2 answers

Create a Shared Drive (formerly Team Drive) using Google Apps Script

I am trying to ascertain if it possible to create a new Shared Drive (formerly "Team Drive") using Google Apps Script. I can see plenty examples of creating new folders inside an already-existing team drive, but not creating an entirely new drive. I…
0
votes
1 answer

Google G Suite Business Reports API configuration

I'm trying to configure Google Service Account (in developers console) to use it in my application to get Reports API. I'm getting error - "Access denied. You are not authorized to read activity records". It seems some issue with configuration. I…
0
votes
1 answer

Autoincrement filename in Google Docs?

How I can add function to Docs for all my accounts, when I open new doc's file it want find my folder where I now + last filename and increment 1 & save. For default Google Doc save document with name 'Untitled document', but I want that it save…
0
votes
1 answer

Google Drive API (REST) - Get download, files views and so on....?? (Is it possible??)

This is documentation which I'm using - https://developers.google.com/drive/api/v3/search-parameters Does anyone know the way of getting through Google Drive API, the number of times the file was downloaded, views(ideal views by whom)... I could…
0
votes
1 answer

PYTHON Connect to Google Team Drive

I was trying to access google team drive with the service account 1) I went to team drive and add as member service account email, and granted him full access 2) I'm not sure which permission have to be granted (inside the console ) to this service…
0
votes
0 answers

Unable to share a file in Team Drive with anyone with link and for people outside organization

I would like to use Google Drive API to share a file with anyone that has the link to view the file. However, i failed with error 403, even if I used admin account "code": 403, "message": "The user does not have sufficient permissions for this…
0
votes
1 answer

getActiveUser and getEffectiveUser returning null in Team Drive script

So my company recently moved from a shared drive to a team drive and we have a google sheet script that uses the method Session.getEffectiveUser().getEmail(); but I get this error when running the script TypeError: Cannot call method "getEmail" of…
0
votes
3 answers

Automatically Delete Files from Google Drive Older than n days - "getFolderById" issue

I'm trying to delete files and folders older than 7 days in a specific Team Drive (not in the whole Google Drive). To accomplish this I tried to merge what I read here: Apps Script - Automatically Delete Files from Google Drive Older than 3 Days -…
Daniele INeDiA
  • 327
  • 1
  • 3
  • 9
0
votes
0 answers

Unable to list files in google drive in android app created by google drive Web Api

I have some files in a Google Drive folder created using the Google Web API. Now I want to list the files and then read the contents. I am not able to list the files using Android Google Drive APIs using Google's example code: …
0
votes
1 answer

How to give a permission to restrict download a file from google drive?

I am using Google drive to share my files like pdf or word. I want to give permission for shared person to view only that file, not download. From google drive interface I can set that permission, but programatically how to set this. I'm using PHP…