I'm receiving this error when trying to change file ownership from Google Apps Script (Google Apps for Education):
GDataServiceExceptionYou can't yet change the owner of this item. (We're working on it.)
The same code works on a Google Apps for Business domain. Is there a limitation for EDU domains?
Ok, found the answer in the Google Drive support pages:
Only Google Apps customers in Premier and Government domains can
transfer ownership of a synced or uploaded file (such as a PDF or
image file). If you're using Google Drive and Google Docs with a
personal account or with a Google Apps for Education account, you
can't transfer ownership of a synced or uploaded file.
http://support.google.com/drive/bin/answer.py?hl=en&answer=2494892
Does anyone know why this limitation exists for Education accounts?
Is Google really working on it (as mentioned in the error message)?
Related
I contact you because I face an issue on a project regarding the execution of an embedded script in a google document:
We have implemented a solution that copy google sheet templates from google drive to a shared drive with a google service account.
When the user tries to execute the document (App Script inside google sheet)'s script in the shared drive, an error message indicates only the owner can perform this action, which is impossible since by default the owner of the document is so the google service account.
Is there a solution to solve this issue?
Thank you!
I am creating one application when users can use his/her drive account to save documents. Can i use Drive API so the users save documents in drive? The users will use my app to upload pdf documents in his/her folder.
Yes you can use the Google Drive api to create, update and delete files on a users google drive account.
You Will need to use Oauth2 to have the user authenticate your application granting it access to their google drive account.
You should be aware that the Google drive api has a number of sensitive and restricted scopes which will make the verification process a little more complicated than it would be otherwise.
What you need to know about Google verification in 2021.
Hello all here's my situation, in as simple of terms as possible.
I have the Google Drive API enabled for a Google Cloud Platform project.
A code script belonging to that GCP project is shared with accounts that are external to my G Suite organization.
This script creates Team Drive folders automatically.
When running this script from the external account, a Team Drive is created in the Google Drive to which the script belongs, not in the Google Drive that belongs to the external user.
I would like the Team Drive to be created in the Google Drive that belongs to the external user who is running the script.
I understand that, without using the Advanced Services I could reference the REST API directly, and have the Team Drive created in the proper Google Drive just by differentiating between credentials that are defined uniquely for both Google Drives, but how is this accomplished with this wrapper library?
I am using Google Drive REST API. Using this app I can upload the file to Google Drive. But I faced some technical problem.
Is it possible to upload files to a specified Google Drive?
Is it possible to fix the access code of Google Drive?
Yes it's possible.
It is the access token that tells Drive which account it should operate on. So read and understand OAuth and you're good to go.
I'm working on an intranet Google Drive app. Users will authorize it with their corporate Google Apps account.
Everything works well, but, users that are using Google multiple sign in cannot download files using the "export URL" (https://drive.google.com/uc?export=download&id=FILE_ID), because Google Drive assumes they are using their private/default Google account instead of the corporate account. And the private account is not authorized to access the files.
I guess they can still access the files through the Google Drive interface by manually switching to the correct account, but I need to provide direct access.
Is there anything I can do?