Google Site Apps Script - google-apps-script

I have created an approval workflow in Google Sites. When I submit a request to a manager.
He approves the request from the GMail Approve button, but it displays an error that he doesn't have permission:
I have shared my Google Site to him, and he can edit this Google Site:
But why couldn't he approve the request from the GMail Approve button?
I found that if I create a script from Google Drive, there is a Share button, but if I create Apps Script from Google Sites, there isn't a Share button:
How could I do this? How could the manager use this Google Site approval workflow?

How does the script run and who had access to it. There are 3 (or4) access levels for any web app - only you, anyone in the domain, anyone, anyone including anonymous.
Have you set the appropriate access permission for your app.

Related

Apps Script (Google Sheet) not allowing me to Run Script

I have a fairly simple dataset in a Google Sheet. I created an AutoSort script. I saved it, and when I click "Run," I get the following errors. One from a pop-up, and another from the Execution Log.
Pop-up error:
Authorization required
This project requires your permission to access your data.
*For this error, there is a button to "Review Permissions" and I log in using my google account and then just nothing happens.
Execution Log error:
Warning This project requires access to your Google Account to run. Please try again and allow it this time.
The Owner of this Google Sheet is my personal Gmail account, and I am making these edits and created the script using my business Gmail Admin account. I also tried to access this sheet and run the script USING my personal Gmail account, and received the same error:
Google hasn’t verified this app
The app is requesting access to sensitive info in your Google Account. Until the developer ({mypersonalemail}#gmail.com) verifies this app with Google, you shouldn't use it.
Any insight as to how I can authorize this would be appreciated. It sounds like something small I'm missing.
Also, in my personal email I receive a message with subject:
Review edits to your Apps Script project within your document
and it allows me links to access the worksheet and the script, but I don't see any way to approve the edits, or anything like that.
Expected behavior: What I am expecting is for the script to Run, when I click "Run."
It's not a good idea to mix accounts from different domains, specially when using a free account and a Google Workspace account like you have done because that is the cause of the situation that you are facing.
My hypothesis is that the Google Cloud default project linked to the bounded script is created with the account used to create the project.
If you need that you personal account be the spreadsheet owner the best is to create the script using the personal account, and when needed, create a Google Cloud Standard project (GCSP) using the the personal account. You might try to fix the problem with your spreadsheet and the current Apps Script project by creating a GCSP, as was mentioned previously, by using the account that is the owner of the spreadsheet and linking it to the Apps Script project.
Note: If your script is using sensitive scopes you might have to set the OAuth Consent Screen publishing status to tes and add your Google Workspace account as tester.
Ref: Setting up your OAuth consent screen
Once you have finished the setup of your Google Apps Script project you should be able to use your Google Workspace account to update and run the Apps Script code but any new deployment and new version should be done using your personal account.
If you have access to Shared Drives and are allowed to use them for your spreasheet, consider to move it to a Shared Drive as this will make a lot easier to manage your script.

I want to complete the verification of the Google Apps Script

I am creating and hosting a web app with Google Apps Script(html). The screen of 'Unverified app screen' is displayed.
Google workspace is not used.
With over 100 users, access to the app is now blocked.
https://developers.google.com/apps-script/guides/client-verification?hl=en#applicability
I'm trying to request verification of the app by referring to the following article, but I'm stumbling on the confirmation of ownership of Apps Script in step 1.
※google cloud platform project has already been created, and is linked to the Apps script project.
Is there a way to check the ownership of a web page launched with Google Apps Script using the Google search console?
They need to click on the unsafe link and authorize the script.

How to publish google apps script website

I wrote a simple Google Apps Script to launch google website. Its integrated with google sheet to get data from it. If I press publish button on the menu it works well. However, I pasted the url into another browser which has not same session with google apps script editor it is not working while attempts login to google.
The google account is not for google play developer. Should I register my google account as google play developer?
You have to set your Web App "Who has access to the app:" property to "Anyone, even anonymous".

How to give access for review Google App Script web page?

I'm create Google App script web page and i share link with my friends. that request access for view page. I received this mail for my friend.
However i cannot give permission for friend. after press "Open sharing settings" it open my script but there hasn't any changes.
This can be reason of Google drive Access problem,
This can be reason of Google Sheet Access problem,
This can be reason of G Mail authentication problem,

How can I stop a google-apps-script from running on a suspended Google Apps account?

Years ago I setup a Google Apps Script to allow me to "snooze" emails in Gmail. I have recently closed that Google Apps account. I am now simply forwarding all emails for that domain to another account that I have. I forgot to stop the Google Apps Script before closing my Google Apps account. I am now getting App Script Notification emails telling me that my Google Apps Script has recently failed to finish successfully. But, I do not see a way to stop this script from running.
To stop Apps Script from accessing your data, you need to revoke it's access.
Here are the steps on how to do that:
Visit the permissions page for your Google account. (To navigate to this page in the future, visit Google.com, then click your account picture in the top-right corner of the screen. Next, click Account, then Security, then View all in the account permissions section.)
Click the name of the script whose authorization you want to revoke, then click Revoke access on the right.
Check also this page for more information.