Remove permissions to the script

511 views
Skip to first unread message

יאיר לוי

unread,
Aug 19, 2020, 10:18:59 PM8/19/20
to google-apps-sc...@googlegroups.com
Hi 

how i let the user do that.....

Remove permissions to the script 
Navigate to:
Apps with access to your account
By going to your account settings - security:
Then scroll down to
Third-party apps with account access
Remove the permissions to the apps script project.


.................from inside of my web app?

or how i can sign out...remove the permissions...or manage the users that already  use my web app?

Alan Wells

unread,
Aug 20, 2020, 8:24:40 AM8/20/20
to Google Apps Script Community
If what you mean is the OAuth Authorization, then you can do that with the following code:

HTML:
<button onclick="removeAuthorization()">Remove Authorization</button>

CLIENT SIDE JS:
function removeAuthorization() {
  google.script.run. removeAuthorization();
}

GS CODE
function removeAuthorization() {
  ScriptApp.invalidateAuth();
}

hthr...@gmail.com

unread,
Aug 27, 2020, 9:15:02 AM8/27/20
to Google Apps Script Community
tnx i will try that

hthr...@gmail.com

unread,
Aug 27, 2020, 12:59:54 PM8/27/20
to Google Apps Script Community
sorry thats not work for me 
Reply all
Reply to author
Forward
0 new messages