Skip to main content
Question

post processing "all files"?

  • May 22, 2025
  • 3 replies
  • 10 views

Forum|alt.badge.img

I am considering a backend service that will post-process all uploaded files in the enterprise (think custom data mining or similar).

 

To do that, I need something like a webhook to notify my service when ANY user uploads a new file, and then I guess I need to fetch the file "As User" from what...a Service Account?

 

What's the best way to register for events (uploaded files) for the entire enterprise - or register a webhook (on the Enterprise Root Folder?) - to get the notifications?

 

Thanks for any pointers.

3 replies

Forum|alt.badge.img

 The event feed is probably what you will want to use. https://developer.box.com/reference#get-events-in-an-enterprise


Forum|alt.badge.img

 that makes sense.  Docs say requires an enterprise admin account...so can I configure a service account to do this?  (FWIW, some of the account selectors - while there are some charts in the docs in the api pages - are a little ambiguous)

 

And once I have the event, my service account is not automatically authorized to download that file, right?  I have to fetch the file with the "AsUser" header/option?

 

Thanks again.


Forum|alt.badge.img

 yes, you pretty much got it. You will need your app approved by an admin to access the enterprise event feed, and to be allowed to use as-user.