Google Apps Script googleドライブで指定した編集者を削除する方法

環境
Windows 11 Pro 64bit
Google Chrome 113.0.5672.64

書式
ファイル(フォルダ)名.removeEditor('ユーザー名またはメールアドレス’)
編集者を削除するには、「removeEditor」を使用します。

使用例

function myFunction() {

  // フォルダぼidの取得
  let fd = DriveApp.getFolderById('xxx');

  fd.removeEditor('xxxx@gmail.com');

}

 

IT

Posted by arkgame