Sharing with others without asking for login details - google-drive-api

I need to be able to share a file from my apple device to any user. It doesn't matter if they have an account or not, they shouldn't be asked to log in or create an account. I've tried using gdrive for Google drive but it keeps crashing. What's the best option I have?

Try https://www.box.com/. You can edit the permissions for a file so others can access it. Same as gDrive. There are other options out there too. This is just one that is pretty popular.
Here's a link that will help you do this: https://support.box.com/hc/en-us/articles/200520888-Shared-Links-Overview-and-FAQs

Related

GAS: trigger email whenever file is shared

I had been hoping to allow some editors to share a sheet, and other editors not be allowed to share. It looks like the 'editors can/can't share' feature applies to all editors and can't be individualized. As a 2nd best solution, I'm wondering if I can at least get an email notification when the document is shared so I can keep an eye on access. Is there a way to trigger an email when a file is shared by anyone? Like 'onOpen' but for sharing.
This should be possible with the Push Notifications API of Google Drive. See this link for details.
This answer originally proposed by #Amit Agarwal
Please select this answer so that we can use it in future reference to this question because getting the moderators to change it is impossible. I guess they can't change things just because they happen to be wrong.

How do I give non-google member webapp permission?

I've built a webapp (form) that I want others to be able to use. But when they access it, it askes to login to their Google account. I've already changed the settings so "anyone can access".
Is there a way to bypass this or authorize anyones accesss to the app so non-google users can use it?
When deploying, just make sure to choose the following:
Execute as: Me (username#domain.com)
Who has access: Anyone
If it still didn't worked, try to copy the GS code into a new file and then choose the following details above again. This seems to solve the same issue for some other users.

Error Sorry, unable to open the file at this time. Please check the address and try again, when trying to create file from Google drive [duplicate]

I tried to do this:
But I always get this:
"Sorry, unable to open the file at this time. Please check the address and try again
Do I have to enable it somewhere secret somehow.
It seems to be a bug, I am having the same issue and it seems that other users also do.
There is already an issue about it on Public Issue Tracker - give it a "star" to increase visibility.
In the meantime use the workaround as suggested by TheMaster and create your scripts from script.google.com instead of drive.google.com.
On Google's Docs Editors Help Nathan Alvesinho suggested that multiple accounts may have something to do with it. I also have multiple accounts. I used the Sign out of all accounts button on my google profile. I signed back in to only one account, and it worked. Not ideal, but it helped me.

Google Drive permission "add but not edit"

Is there any way to do this?
I want a shared folder, which will be used for resources for a project, I want to allow my developer to add new files which I will then review and use, but not to edit existing ones as then it'll bypass my review.
This is for security reasons.
Any ideas? If a solution exists for OneDrive I'd also accept it.
No, that is currently not available. You can only give them edit permission, which includes add and edit.
The best way to achieve this is to script moving any added items into a private or view-only folder.
You only have a few permissions roles that you can set.
owner
writer
commenter
reader
So, there's no quick way to do that. What I can suggest is for you to detect changes on the folder (considered as file with the MIME type application/vnd.google-apps.folder) in which the file will be added, and then change the permission of that file to reader.
Hopefully the suggestion would be sufficient for your use case.
Happy coding!

Make my app silently login to default predefined google drive account instead of asking users account

thanks for reading!
So I recently got some good ideas but my knowledge just isn't enough here. Even though my google-ing should be top notch I could't find anything about this.
I want the user to take a picture of something, upload the image to google drive, and download it as .txt file, so I would like to do an OCR. Making all the users give me their google drive access is not what I want. I want to have one dedicated google drive, where they automatically log into when the app starts, upload and download the stuff from that one same google drive account for everyone. The problem is that I can't really figure out how to do that. I'm quite new to API-s as well.
The scenario you describe is best achieved using a Service Account. See https://developers.google.com/identity/protocols/OAuth2ServiceAccount