![]() If you aren't that user, they should transfer the ownership of the files to you. This requires that a G Suite admin gives this privilege to the service account.Īnother option is that the G Suite admin transfer the ownership of all the files of those user to another user. If you can't get that the file owners do the ownership transfer you will need a Google Service Account with domain-wide delegation of authority to impersonate them. This could be done using OAuth instead of using Node.js (or other platform / programming language use Google Apps Script which handles the OAuth for your with some restrictions. This message is coming when I use file id of bob, Alice or marry with my email addressĬode is in node.js function transferOwnerShip(auth) ) įileId: '1_o-rhbFinu1_LZYniFNo1gV0Epv5mYU5',ĮmailAddress: transfer the ownership of file (including Google Drive folders which in the REST Google Drive API are referred as files) the code should be executed with the permissions of the file owner. ![]() ![]() User message: "Sorry, you do not have permission to share." How can do that, I have tried using Google API's v3, and I am getting an error: Bad Request. Since all the files and folders are created inside my Drive folder so I want to take ownership of all files/folders created inside my folder. Now I want to take ownership of all files and folder created/uploaded inside my folder to me. Now my other team members have started uploading files and folder inside my folder. My company is using G-Suite for business. My scenario: I have created a folder inside my Google Drive with the name called folder-root and shared that folder with my colleagues. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |