Cancel Gmail Meter Apps Script trigger [duplicate] - google-apps-script

This question already has answers here:
How do I deactivate GMail meter emails?
(3 answers)
Closed 7 years ago.
Two years ago I installed the Gmail Meter on my G-mail account. It provides me reports monthly. Since I'm not aware about managing the triggers and this stuff, I have no idea how and where I could stop or cancel that trigger.
Can you give me a clue?

You can see all your triggers by opening up the script editor. Do you have any Apps Script files in your Drive?
Google Drive
If you do, open up an Apps Script, and in the script editor, choose the RESOURCES menu, and the ALL YOUR TRIGGERS menu item. You can review, and delete all your triggers there.
The Gmail Meter documentation states that you received an email when you signed up, and that email has a link to uninstall the app. Did you go through that process?
Also, go into your Google Account,
Link To Google Settings Page
and view all your connected apps.
Revoke Access to any App that you don't want any more.
Also go into your security checkup:
and remove anything that you don't want anymore.
The Gmail Meter documentation also states:
Lastly, simply delete the file in your Google Docs/Drive that is used for storing the Gmail Meter data: "Gmail Meter Data - Do not delete".

Try signing up to the platform again here http://www.gmailmeter.com/#sthash.YeNkVmQn.dpbs and then cancel the script through the official link when the confirmation mail arrives here.

Go to account.google.com
Then log in using your Google Account.
Now scroll down to find the "Account Permissions" and select it.
Now find the Gmail Meter, select it and choose Revoke Access from the top right corner.

Related

How to launch Google App Script from external [duplicate]

This question already has answers here:
Can not run trivial app script bound to new blank document - get "This app is blocked"
(3 answers)
Closed 5 months ago.
I have created a custom function in a Google Sheet and I have given access to the Sheet to other users. But unfortunately the security settings of there company do not allow the users to unlock this script for their account.
This app is blocked. This app has tried to access confidential data in your Google account. To protect your account, we have blocked the access.
Is there any way that users can still run this script externally without having to install it themselves? So for example via a click on a button, which then starts the script in my account.
No, you won't be able to do that. The only way some code could be triggered by external users, but effectively executed by your account, would be in an apps script web app.
As you can see in the screenshot, there's an "Execute as" setting when you deploy an app that controls this behaviour:
I appreciate that this may not be an option for you, given that the current code is a custom function in a sheet. The only other approach would be to have the external users make a copy of the sheet, with its function(s), to run in their Google Workspace environment.

How to capture google account of viewer using google apps script? [duplicate]

This question already has an answer here:
Getting a list of active file viewers with apps script
(1 answer)
Closed 1 year ago.
So i have a google sheet table to store data of my team (name and gmail account). I will assign every user with different task in my project. I create a web app (user interface) using apps script so my user can interact with the task. In this case, assumes all my users will be using google chrome browser and need to login to the google account on their own browser. For users who use other browser or if not sign in to google account will be ignored.
If i deploy my apps script, is there any method to know which user is browsing it just by checking the google account they use. I don't want to create custom user/pass to login. I just want the script can detect by active google account to personalize the page so they don't need to see all available the task but only can see specific task that they are assigned to.
https://stackoverflow.com/a/66342797/16125139
This should help you
Session.getActiveUser().getEmail()

How to make gmail remember my Add-on open state?

I am working on Gmail Add-on using Google Apps Script, it is already published to Gsuite marketplace.
I can see that Gmail is remembering the last open state of google provided add-ons like Calendar, Keep etc, and keep it open even if I refresh / reopen the browser.
But, this is not happening for my add-on.
How can I make Gmail remember my add-on as last opened and open it by default?
You can check out Properties Service to store strings as key-value pairs in apps script.

(How) can I publish a Google Sheet and associated Google Apps Script organization-wide and avoid or suppress authorization prompts?

Our organization uses Google Apps for Work. We have a Google Sheet "form" for employees/users to complete. After entering information, users are expected to use email as attachment/PDF. Finally, users click a "button" near the bottom of the sheet that triggers a script to clear user data. The first time a user clicks the button, an "Authorization Required" prompt appears, informing the user "the application" (script) "needs authorization to run." If approved, the prompt goes on to request View and manage your spreadsheets in Google Drive permissions for the script.
Is it possible to digitally sign or otherwise pre-approve a Google Apps Script for all users in a Google Apps organization so this prompt doesn't appear? We can/will include instructions for users, to head off questions / allay fear, but many of our users will either ignore or not understand the instructions and be perplexed.
I'm open to (and exploring) other options for tackling this (Google Forms/Sheets?), but prefer to stay in the (native) Google Apps environment as much as possible.
I couldn't find this question elsewhere and as best as I can tell, it isn't answered in Google Apps Script documentation.
I have found no way to pre-approve an organization/group/individual without manually doing it for each account.
You CAN deploy the script using a service account and have it run as that account. Then you are authorizing that account and the end user's accounts do not come into play. The drawback is that if you want the emails to go out using the end user's email, it won't happen. Plus the sending of the email would have to be from code in the app. That means all emails would go out using the service account's email address. (Although I am now wondering if it is possible to initiate the email without sending it. Basically pop it up as if a mailto link was clicked.)
You also will not be able to get the end user's name, etc. If these items are not important, or you can trust them to fill out their name where it may be needed (you could change the From name to what they key in) then running as the service account may work for you.
Karl

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.