Created
December 22, 2018 07:47
-
-
Save onesword0618/e6e55d0c98f8e64c181c3eb58e9fc56e to your computer and use it in GitHub Desktop.
getEmail()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 編集可能なファイルの編集者のメールアドレスを取得する | |
| var file = DriveApp.getFileById('XXXXXX'); | |
| // ファイルの共同編集者の情報を取得する | |
| var editors = file.getEditors(); | |
| // 共同編集者のメールアドレスを取得する | |
| for (var i = 0; i < editors.length; i++) { | |
| Logger.log(editors[i].getEmail()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment