Can't access files retrieved in an enterprise event

SOLVED
Go to solution
Highlighted
New Contributor

Can't access files retrieved in an enterprise event

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?

2 REPLIES 2
New Contributor

Re: Can't access files retrieved in an enterprise event

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

Highlighted
Box Employee

Re: Can't access files retrieved in an enterprise event

@hilo12195  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.


---
Developer Advocate @ Box