2017-06-01 165 views
0

我已經構建了一個Google App腳本Web應用程序,我需要找出腳本所有者是誰?如何找出腳本擁有者是誰?

我想禁用應用程序,但它告訴我,我不是腳本擁有者。但是我確實創建了腳本。

+0

我不知道是否可以使用該功能在Google Apps腳本。解決方法之一是將其刪除[與您的Google帳戶相關的服務](https://support.google.com/accounts/answer/2541991?hl=zh-CN)。這將停止工作(權限被拒絕)應用程序訪問您的帳戶。希望這可以幫助。 –

回答

1

我想你可以使用類文件

var files = DriveApp.getFilesByName("your app"); 
//search the correct file in the array 
while (files.hasNext()) { 
    var file = files.next(); 
    Logger.log(file..getOwner()); 
}