API Not Showing "co-owner" Content
回答済みI am trying to view content located inside a folder where I am a co-owner. I am authenticating via JWT and using "as-user" header. Calling the list items endpoint:
https://developer.box.com/reference/get-folders-id-items/
The endpoint itself is returning the one folder I created, but not the one I am a co-owner of. The item count weirdly shows "2", but the actual folder is omitted:
stdClass Object
(
[total_count] => 2
[entries] => Array
(
[0] => stdClass Object
(
[type] => folder
[id] => 123703336333
[sequence_id] => 1
[etag] => 1
[name] => Testing
)
)
[offset] => 0
[limit] => 100
[order] => Array
(
[0] => stdClass Object
(
[by] => type
[direction] => ASC
)
[1] => stdClass Object
(
[by] => name
[direction] => ASC
)
)
)
Does anyone have any experience in dealing with this?
Thanks!
-
The same applies to collections as well. I have added the shared folder to a collection, and called the items endpoint for that collection. The "entries" node returns a 0 element array. However, the "total_count" shows a int of 1.
stdClass Object
(
[total_count] => 1
[entries] => Array
(
)
[limit] => 100
[offset] => 0
) -
I don't believe there is a way to apply the impersonation (As-User) capability to content in an enterprise outside of your own.
This constraint is in place as a manner of privacy. I.e. if an external party invites a user within your enterprise to collaborate - it establishes a trust relationship between the external party and your user. However, that relationship does not extend to administrators or others in your user's enterprise. Put simply - I trust the user I invited to collaborate on this data, I don't *implicitly* trust his/her colleagues.
サインインしてコメントを残してください。
コメント
5件のコメント