Created
December 24, 2018 23:43
-
-
Save onesword0618/eae0a037ef333fc4abfedade7eb10e7c to your computer and use it in GitHub Desktop.
getName()
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].getName()); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment