Skip to main content

Authentication method?OAuth2

API used to retrieve the enterprise event
https://api.box.com/2.0/events
?Request Parameter
?stream_type?admin_logs

 

API used to get the file
https://api.box.com/2.0/files/{file_id}
?Response
code:404
{"reason": "invalid_parameter","name": "item","message": "Invalid value 'f_*****'. 'item' with value 'f_*****' not found"}
*File exists


User who authenticated the OAuth2 token
?co-administrator

Owner of the file for which information cannot be obtained
?General user

*If you are a co-administrator instead of a general user, you can access the file information

 

What kind of authority settings do you need to achieve this?



I was able to solve it by adding 'as-user' to the header
Thank you very much




  I was indeed going to suggest that as the answer. By default an admin or co-admin does not have access to files they don't own, but an app can opt into acting as another user with the as-user header.



Reply