Skip to content

Instantly share code, notes, and snippets.

@henriquebs12
henriquebs12 / gdrive-permissions-reset.js
Created September 15, 2020 04:40 — forked from soham2008xyz/gdrive-permissions-reset.js
Reset permissions for Google Drive documents in all subfolders
var selectedFolder;
var dialog;
function doGet() {
var app = UiApp.createApplication();
var heading = app.createHTML("<h1>Folders for</h1>");
app.add(heading);
var allFoldersIterator = DriveApp.getFolders();
var text = app.createTextArea().setName("text").setId("output");
app.add(text);