POST/sharedrives/{sharedriveId}/permissions/enable
미 사용 권고 (deprecated) 공용 드라이브 수정 API를 사용한다. 공용 드라이브(공용 폴더)에 개별적으로 접근 권한을 생성할 수 있는 상태로 활성화한다.
도메인의 모든 사용자가 접근할 수 있는 상태에서 접근 권한을 활성화하면, 해당 공용 드라이브에 마스터만 접근할 수 있게 되고 기존에 설정된 고용 형태 제한이 모두 삭제된다.
이미 개별 권한이 생성된 공용 드라이브라면 아무 변경 사항도 발생하지 않는다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
file
| Parameter | Type | Description |
|---|---|---|
| sharedriveId | string | 공용 드라이브 ID required example : @2101000000000008 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| accessDenies | array (ShareDriveAccessDeny) | 접근 제한 |
| createdTime | string | 생성 날짜 readOnly : true |
| description | string | 설명 |
| hasPermission | boolean | 특정 멤버에게 권한이 부여되었는지 여부 readOnly : true |
| accessibleRange | string | 접근 범위
Allowed values : TENANT, DOMAIN, MEMBER nullable : false |
| masters | array (ShareDriveMaster) | 마스터 |
| name | string | 이름 |
| quota | object (quota) | 용량 정보 readOnly : true |
| sharedriveId | string | 공용 드라이브 ID readOnly : true |
| permissionType | string | 편집 권한
Allowed values : READ, WRITE |
| Property | Type | Description |
|---|---|---|
| id | string | 접근 제한 ID |
| name | string | 접근 제한 이름 readOnly : true |
| type | string | 접근 제한 종류 Allowed values : user-type |
| Property | Type | Description |
|---|---|---|
| id | string | 마스터 사용자 ID |
| name | string | 마스터 사용자 이름 readOnly : true |
| Property | Type | Description |
|---|---|---|
| trash | integer | 휴지통 용량 format : int64 readOnly : true |
| used | integer | 사용 용량 format : int64 readOnly : true |
example
1{2 "sharedriveId": "@2101000000000008",3 "name": "share drive",4 "description": "description here",5 "createdTime": "2020-12-16T19:40:15.15+09:00",6 "quota": {7 "used": 46426,8 "trash": 09 },10 "hasPermission": false,11 "masters": [12 {13 "id": "userf7da-f82c-4284-13e7-030f3b4c756x",14 "name": "User Name"15 }16 ],17 "accessDenies": [18 {19 "type": "user-type",20 "id": "041b68d3-263a-4fbe-9bc5-0350c49d1c42",21 "name": "아르바이트"22 }23 ],24 "permissionType": "READ",25 "accessibleRange": "DOMAIN"26}Forbidden