Skip to main content
Question

Provide access to one specific folder for Custom Application

  • May 22, 2025
  • 3 replies
  • 33 views

Forum|alt.badge.img

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

Forum|alt.badge.img

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ç


Forum|alt.badge.img

Thanks a lot.

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


Forum|alt.badge.img

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!