Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Script - how to remove granted OAuth permissions?

I explored some functions in Google App Script and added the requested OAuth permissions to my script.

AppScript Permissions Image in Google Sheets

But finally I removed the particular function calls. How can I remove the granted permissions??

Regars klaus

like image 398
klwemu Avatar asked Jun 05 '16 20:06

klwemu


2 Answers

Very easy, if you set the OAuth manually, the others OAuth are deleted automatically.

To set the OAuth manually, you need to open the "appscript.json" file located in [Script Menu Bar] > [View] > [Show manifest file], and include the OAuth that you need as below:

"oauthScopes": ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/spreadsheets"],
like image 113
Bruno Yuzo Avatar answered Oct 03 '22 16:10

Bruno Yuzo


The OAuth Scopes in that list are displayed automatically based on a scan of the code, just keep in mind that even if your code is commented yet an authorization request will be generated and will be displayed in that list

like image 26
ocordova Avatar answered Oct 03 '22 15:10

ocordova