有没有办法检索有权访问协作的所有用户/组:BOX API?
答案 0 :(得分:1)
API将协作定义为访问控制列表。它是一个授予单个用户(或组)权限以访问文件夹的对象,因此您无法真正访问协作。
这听起来更像是在问你怎么能得到一个文件夹上所有合作的清单,你可以这样做:
GET /folders/{id}/collaborations
将返回类似的内容:
{
"total_count": 1,
"entries": [
{
"type": "collaboration",
"id": "14176246",
"created_by": {
"type": "user",
"id": "4276790",
"name": "David Lee",
"login": "david@box.com"
},
"created_at": "2011-11-29T12:56:35-08:00",
"modified_at": "2012-09-11T15:12:32-07:00",
"expires_at": null,
"status": "accepted",
"accessible_by": {
"type": "user",
"id": "755492",
"name": "Simon Tan",
"login": "simon@box.net"
},
"role": "editor",
"acknowledged_at": "2011-11-29T12:59:40-08:00",
"item": null
}
]
}
https://developers.box.com/docs/#folders-view-a-folders-collaborations