Skip to main content
Box Employee
May 22, 2025 7:42 AM UTC
Question

Provide access to one specific folder for Custom Application

Hi.

 

I successfully developed custom application for my client and it's working.

 

The task was to allow to my application to read and download files from one specific folder where our client can manage files.

 

The only way i found to be able to download files uploaded by another user is to authenticate as some user who has such access.

And here is the the problem: to provide such an access i needed to request next permissions:

 

BOX_zj3ktp14nphizvwtpjk8l5vl4qmfp7yd.png

And the problem is that with "Manage user" permission i can request the list of users, and find Admin id and work on behalf of admin user. And so i can get access to all folders and files, and i'm not supposed to have one.

Could you advise me something how to deal with this problem so i will be able to access specific folder only?

 

    3 replies

    Box Employee
    May 22, 2025 7:42 AM UTC

    Hello  ,

    actually, you don't need to impersonate anybody to be able to access to a specific folder 🙂

     

    You only need the Read all files and folder stored in BOX. Create an application user and then you can rquest the owner of such folder to add this user as viewer, editor or whatever role you need.

     

    Thanks,

    Vicenç

    Translate
    Box Employee
    May 22, 2025 7:42 AM UTC

    Thanks a lot.

    But i have one question: how to create application user? Could you send me the link?

    Translate
    Box Employee
    May 22, 2025 7:42 AM UTC

    Hello  ,

    sure 🙂

     

    Please, find here a couple of links that can be of assistance:

     

    https://developer.box.com/en/guides/users/create-app-user/

    https://box-content.readme.io/docs/app-users

     

    Hope this helps!

    Translate