GET/users/{userId}/drive/files/{fileId}/share
Gets folder sharing information.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | User ID
required example : me |
| fileId | string | File ID required example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| rootFileId | string | Root file ID |
| members | array (object) | List of members |
| createdTime | string | Creation time format : date-time |
| modifiedTime | string | Update time format : date-time |
| Property | Type | Description |
|---|---|---|
| userId | string | Member ID readOnly : true |
| userType | string | User type
Allowed values : USER, ORGUNIT, GROUP |
| permissionType | string | Permission type
Allowed values : READ, WRITE |
| userName | string | First name readOnly : true |
example
1{2 "rootFileId": "MzAyNjY0OTN8MjI3MTE0MTQ2MzA1MnxEfDMwMDcwNDQ",3 "members": [4 {5 "userId": "userf54b-fc04-4c54-8b9b-7072a326874a",6 "userType": "USER",7 "permissionType": "WRITE",8 "userName": "user Name"9 }10 ],11 "createdTime": "2023-06-05T10:54:10+09:00",12 "modifiedTime": "2023-06-05T10:54:10+09:00"13}Invalid parameters received.
Resource does not exist.