How do I give non-google member webapp permission? - google-apps-script

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.

Related

Have an issue with access to Google Web App Script

I tried to find the answer to this question. I've combed forums and stackoverflow and I'm still at a loss for how to get a web app to work outside of my own domain.
Change Admin Share Settings
I've read here and in other places go to Admin Console > Apps > Drive and Docs > Sharing Options
All the ones mentioned are checked:
"Invitations to people outside of domain who are not using a google account"
"Allow users in domain to publish files visible to the world as public or unlisted"
Publishing App
Made sure to avoid these pitfalls:
"Anyone, even anonymous"
Execute the app as "Me"
Made sure to create a new web app to avoid the caching issues
Yet I still cannot see it if not logged in as a user attached to the domain. It's just a simple "hello world" test to simplify the code, but I still get blocked. Seeing..
Any help would be greatly appreciated. Thank you to the community for all the other answers that at least put me to knowing most of the potential issue.
It turns out that I'm at fault. It's never user error, right?! You can't just copy the web URL at this stage:
You have to go to it then copy the redirected URL for anonymous access.
My redirect URL looked more like https://script.google.com/a/macros/...

Google web app script keeps asking for users to sign in?

I have created my script and it works great. I have changed the sharing so anybody can view it, but it still asks users to login to their Google account to run the script.
Here is the link: My script
Currently you're web app is set to execute as User accessing the web app. This means they need to sign into a Google account to execute any of the code in your app.
You need to change this setting to: Execute the app as: Me
As well as change Who has access to the app from Anyone to Anyone even anonymous
Example:
The setting can be found by clicking on the cloud icon in the Apps Script IDE's toolbar.
Edit: Added new image to reflect proper settings.
It might be that they've updated the settings to where the least restrictive option is "Anyone" which would still require a log in. This is happening with my Google Workspace for Education account.

Sharing with others without asking for login details

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

Web App execution/access scope

When I deploy my GAS project as a web app, I choose to execute the application as the user accessing it. The option for 'Who has access to the app' I can choose just myself, or everyone in my domain. This I understand.
However, in our Google Apps environment - the domain I belong to is one of many 'sub-domains' under one 'tld' domain to which I have an admin account. I don't have privileges to go full exploring in the control panel to see the exact organization, but I know that I can share docs to everyone in all domains via my Drive. How can I get my script to operate in a similar manner?
There are a couple of good resources on this topic.
Stackoverflow question which links to this
Google support answer
With Google Drive, "You cannot restrict sharing to the users in a single domain". I haven't found an answer to this, but this was the closest that I could find. It seems that you will just have to test if "Anyone in my domain" actually means "Anyone in my organization." If you can test this and report back, I will update this answer.

How to disable edit functionality for my mimetype for non-creator

For my application, I cannot let people who are not the creator of the content edit it. Viewing is fine.
Is there is way to disable the "Can edit" and "Is owner" options inside Sharing settings?
Thanks.
The only way I can think to do this is:
An account in your control actually owns the file.
The user that creates the doc gets read access in Google Drive.
Your application tracks which user "created" the document on it's own.
Document creators are able to edit the doc inside your app although your app is actually using your own account which owns the file to save changes.