I encounter the following problem:
An external app is using a service account to copy Google Sheets from a template folder to a shared drive.
After the copy the apps script that is in the Google Sheet is still owned by the service account and can't be run be anyone else.
When a user copies the file once more, the script can be run by the user.
So why is the ownership of the script still the service account while the Google Sheet resides on a shared drive and the shared drive is the owner of the GS?
How can we transfer ownership of the script (not the GS) to the shared drive? or is there another solution?
Related
What will extra setting to get files / folder from google drive API with service account? Currently getting empty results.
Same code working with credential web scope with client id and secrets key but not with service account.
When you use a web client. It pops up and requests authorizaiton. In this way a user is granting your application access to their data. So a file.list will return the files on the users google drive account.
The same thing is happening with your service account. Only service accounts are pre authorized. Your file.list is returning no files becouse the service account doesnt have acess to any files yet. You see it has its own drive account.
Options.
Upload files to the service accounts drive account.
open your credetials.json file. Look for the service account email address. Take that address and share a directory or file on your personal drive account with the service account.
Now do a file.list. It should have files.
Ownership is not transferable from #google.com to another domain.
anyway to migrate the 15GB free drive account to a workspace business account?
(must include the google doc files)
trial
Even if the 15gb account is granted content manager, folder in 15gb account still cannot move to shared drive of the workspace account
reason doc "" You can only move folders owned by a user in your organization.""
I'd do the following:
Make a shared drive on your Workspace account.
Give Content manager permissions to your free account.
Copy or move the files to the drive.
Move the files to your new account root folder.
(optional) Remove the shared drive, or revoke your free account's permissions to it.
Alternatively, since you have a Workspace account, you can contact Workspace support.
I have published a drive app that works fine for my drive. But it does not show up when i am in Shared Drive. Do I have to republish or re-install the app Or
my System Admin will install that app and that will reflect in everyone's account. Please help me out.
I Found it myself after few hours of R&D. If you want to enable your Drive Installable App to be appear in Shared Drive then check the checkbox titled as Shared Drive Support and click save
I have created a new file and google drive through the browser.
But I am unable to see the new file on the connected google drive physic PC drive.
Is this not achievable with google drive?
Only one side of synch only work(PC to Google Drive)? Two way syncing is not possible (PC to Google Drive and Google drive to PC)?
AFAIK, this is a one way sync (PC to Drive not the other way around). When installing the Google Drive app and do a backup and sync, Google Drive acts as a Cloud backup for any changes to the selected folders you've wanted to backup.
As stated in this guide:
The Backup and Sync tool is split up into two main sections:
Google Drive: This performs the same function as the original Google Drive app. You choose what folders to sync from your Google Drive cloud storage, and they’ll appear in a Google Drive folder on your PC. Anything you put into that folder will also sync to Google Drive.
My Computer: This part is new, and allows you to sync files between your computer and Drive without putting them in the dedicated Google Drive folder. Just pick the folders from your computer you want to sync, and they’ll sync to your cloud storage (though they’ll appear in a separate section of the Google Drive interface, rather than with all your other Drive files.)
Hope this helps.
Say, I am a Domain Super Administrator. And, there are User A (source - files to be copied from) and User B (destination - files to be copied to). Is there any Google Drive SDK API available for this feature?
When I read this: https://developers.google.com/drive/v2/reference/files/copy, this API allows only to copy into my own Google Drive.
Please help. Thanks.
Use domain-wide delegation to impersonate each user https://developers.google.com/drive/delegation.
Authenticate as source user and share file with target user https://developers.google.com/drive/v2/reference/permissions/insert
Authenticate as target user and copy source file to produce target copy of file owned by target user https://developers.google.com/drive/v2/reference/files/copy