Provide access to one specific folder for Custom Application
AnsweredHi.
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:
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?
-
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ç
-
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!
Please sign in to leave a comment.
Comments
3 comments