명시적으로 액세스 권한이 부여된 개별 사용자 외에도 파일 또는 폴더에 액세스할 수 있는 사용자에게 부여된 권한을 나타내는 enum입니다. 이러한 속성은 DriveApp.Permission에서 액세스할 수 있습니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
DriveApp.Permission.VIEW입니다.
// Creates a folder that anyone on the Internet can read from and write to.// (Domain administrators can prohibit this setting for Google Workspace users.)constfolder=DriveApp.createFolder('Shared Folder');folder.setSharing(DriveApp.Access.ANYONE,DriveApp.Permission.EDIT);
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-12-22(UTC)"],[[["`DriveApp.Permission` is an enum that represents the permissions granted to users for accessing files or folders, in addition to individually assigned permissions."],["You can use `DriveApp.Permission` properties like `VIEW`, `EDIT`, `COMMENT`, etc. to define access levels when setting sharing settings for files or folders."],["Calling an enum property involves using the parent class, name, and property, such as `DriveApp.Permission.VIEW`."],["While some properties like `OWNER`, `ORGANIZER`, `FILE_ORGANIZER`, and `NONE` can be returned, they cannot be used to set sharing permissions and will throw an exception."]]],["The `Permission` enum in DriveApp defines user access levels for files/folders. Key permissions include `VIEW` (view/copy), `EDIT` (edit, potentially share), and `COMMENT` (view, copy, comment). `OWNER`, `ORGANIZER`, and `FILE_ORGANIZER` are for ownership and shared drive organization. `NONE` indicates no permissions. `setSharing()` can define these permissions using `DriveApp.Permission.ENUM_NAME`, except for `OWNER`, `ORGANIZER`, `FILE_ORGANIZER`, and sometimes `NONE`. The `setSharing` method also accepts an `Access` type to define who these permissions apply to.\n"]]