Code Monkey home page Code Monkey logo

Comments (13)

helio-silva avatar helio-silva commented on June 1, 2024 1

Even moving data to other accounts I'm still owner of jpeg.
It looks like Google Drive is a trap for photographers I should move to other service
thank you guys for your help and nice shared code.

from google-drive-recursive-ownership.

helio-silva avatar helio-silva commented on June 1, 2024

Got insufficient permissions
Item folder/subfolder/photoHiRes.jpg needs ownership granted.
Upgrading existing permissions to ownership.
and them this error:
An error occurred updating ownership permissions: <HttpError 403 when requesting https://www.googleapis.com/drive/v2/files/0B9Y3CeAxHt4RVU5Qd216MWwtS1E/permissions/16600970269708598941?alt=json&transferOwnership=true returned "Insufficient permissions for this file">

from google-drive-recursive-ownership.

Paraka321 avatar Paraka321 commented on June 1, 2024

Luperi, are you still having this issue?

helio-silva, can I get some more information from you? It looks like you are trying to change permissions on a jpg file. Are you using a personal gmail account (ends in @gmail.com) or are you part of a school/business/government organization that uses gmail to check email for accounts that do not end in @gmail.com? If you are using a personal account or G-Suite for Business account you will not be able to change permissions on a jpg file with this tool. This is hard-coded into Google's permission scheme; you can only change permission on Google-based documents (Docs, Sheets, Slides, etc). See the README for more information.

from google-drive-recursive-ownership.

davidstrauss avatar davidstrauss commented on June 1, 2024

If you are using a personal account or G-Suite for Business account you will not be able to change permissions on a jpg file with this tool. This is hard-coded into Google's permission scheme; you can only change permission on Google-based documents (Docs, Sheets, Slides, etc). See the README for more information.

I don't believe this is correct. I originally wrote this script (and used it) to hand off ownership of objects including non-Google-documents from one user within a G Suite organization to another.

What I think this script can't do is hand-off ownership between non-G Suite accounts or G Suite accounts that are part of different organization.

from google-drive-recursive-ownership.

Paraka321 avatar Paraka321 commented on June 1, 2024

I don't believe this is correct. I originally wrote this script (and used it) to hand off ownership of objects including non-Google-documents from one user within a G Suite organization to another.

What I think this script can't do is hand-off ownership between non-G Suite accounts or G Suite accounts that are part of different organization.

I think on one of the other issue threads we talked about this. If I remember correctly you created this while working under a G Suite domain, which causes all of the pieces to work as expected. Personal Gmail accounts can only move files that were 'created' by the user, not 'uploaded' by the user. Since the only files that can be created are Google files, personal accounts can only change permissions on Google files. This is not something that can even be done manually through the GUI and it is unlikely that the API would allow this extra functionality.

You are correct that permissions cannot be changed across domains. This is also hard-coded into Google's permissions.

from google-drive-recursive-ownership.

davidstrauss avatar davidstrauss commented on June 1, 2024

I think on one of the other issue threads we talked about this. If I remember correctly you created this while working under a G Suite domain, which causes all of the pieces to work as expected. Personal Gmail accounts can only move files that were 'created' by the user, not 'uploaded' by the user. Since the only files that can be created are Google files, personal accounts can only change permissions on Google files. This is not something that can even be done manually through the GUI and it is unlikely that the API would allow this extra functionality.

Yes, this is all correct. I was correcting this comment that you posted earlier:

If you are using a personal account or G-Suite for Business account you will not be able to change permissions on a jpg file with this tool.

This tool should work for moving ownership of a JPG file between users in a G Suite account. Did you mean to say "between a G Suite user and a personal account"?

from google-drive-recursive-ownership.

Paraka321 avatar Paraka321 commented on June 1, 2024

This tool should work for moving ownership of a JPG file between users in a G Suite account.

I just tried testing a JPG with a personal gmail account to another personal gmail account. I was unable to move it with the script or from the GUI. Instead I get the following error:

Item test\File_000.jpeg needs ownership granted. Upgrading existing permissions to ownership. An error occurred updating ownership permissions: <HttpError 403 when requesting https://www.googleapis.com/drive/v2/files/0B-kZ41hEUm_8aGxFM3hyTVFCbVk/permissions/03173207988037715799?alt=json&transferOwnership=true returned "Insufficient permissions for this file">

from google-drive-recursive-ownership.

davidstrauss avatar davidstrauss commented on June 1, 2024

I just tried testing a JPG with a personal gmail account to another personal gmail account. I was unable to move it with the script or from the GUI.

I think you need to review what I'm saying. I never said that would work. (Rather, I said it wouldn't.) The tool works to move documents and regular files between users in a G Suite organization.

It does not work (and cannot work) to move ownership of regular files (like JPGs):

  • Between two personal Google accounts.
  • Between a personal Google account and a G Suite account.
  • Between G Suite accounts in different organizations.

from google-drive-recursive-ownership.

Paraka321 avatar Paraka321 commented on June 1, 2024

I don't believe this is correct.

I think this is the source of my confusion and the start of our discussion.

It does not work (and cannot work) to move ownership of regular files (like JPGs):

  • Between two personal Google accounts.
  • Between a personal Google account and a G Suite account.
  • Between G Suite accounts in different organizations.

This is correct. That is what I was trying to communicate.

from google-drive-recursive-ownership.

helio-silva avatar helio-silva commented on June 1, 2024

Got insufficient permissions
Item folder/subfolder/photoHiRes.jpg needs ownership granted.
Upgrading existing permissions to ownership.
and them this error:
An error occurred updating ownership permissions: <HttpError 403 when requesting https://www.googleapis.com/drive/v2/files/0B9Y3CeAxHt4RVU5Qd216MWwtS1E/permissions/16600970269708598941?alt=json&transferOwnership=true returned "Insufficient permissions for this file">

from google-drive-recursive-ownership.

helio-silva avatar helio-silva commented on June 1, 2024

I'm a photographer using my personal account at google drive to share jpeg's with family and friends. Since my disk space started to shrink I'm trying to find a way change ownership of these photos.

from google-drive-recursive-ownership.

Paraka321 avatar Paraka321 commented on June 1, 2024

Got insufficient permissions
Item folder/subfolder/photoHiRes.jpg needs ownership granted.

@helio-silva That looks like the error I posted above. See the conversation above. One of the three situations outlined by @davidstrauss must be true.

from google-drive-recursive-ownership.

Paraka321 avatar Paraka321 commented on June 1, 2024

I'm a photographer using my personal account at google drive to share jpeg's with family and friends. Since my disk space started to shrink I'm trying to find a way change ownership of these photos.

Google does not allow for this. You will not be able to use this project to circumvent Google's permissions.

from google-drive-recursive-ownership.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.