Transfer Google doc files in google drive to another domain - google-drive-api

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.

Related

My service account as guest user in google shared drive. My issue is ,guest not able to add new folder in the gdrive

My service account as guest user in google shared drive. My issue is ,guest not able to add new folder in the gdrive.
I set the user as guest. He can't creat a new folder under the drive location

With Service account, Not getting any files / folder list with PHP

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.

Apps Script Service Account Ownership Issue

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?

Transfer owner all documents to Administrator account using API (Google Drive)

I'm using Google Apps for Work. I try to take ownership for ALL file in user's Google Drive to Administrator account using APIs, via the latest Drive API http://support.google.com/a/bin/answer.py?hl=en&answer=1247799
With super admin permission, I can't use setownerto take ownership (action not allowed)
Only the owner of the file can grant access or ownership to other users. Even as admin, you won't have that kind of permission.
In order to accomplish this, as an admin you can "impersonate" the user and then perform actions on user's behalf.
This is done using service account with domain wide delegation permissions.
After doing this, you can call the API's as the user and give the admin(yourself) owner permissions of the user's files.
Hope this helps.

Google Drive SDK: To copy files from a user to another user via Domain Super Administrator access right

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