How to move a file to a folder where the user doesn't have permission?
I have the following scenario:
- User has the files in Box, in his own Box instance
- The user will select and process this file in our custom application
- Our custom application will move automatically this file, to another location, with an App User because the original user has no rights on the destination folder
How can I make this happen?
-
Since you are moving content from an instance that you don't own, using an App User for this is not the right approach. Your app can't grant access to your app user into that separate instance.
Instead, what you want to do is grant the managed user an "Uploader" permission into your target folder, then they can move/copy the folder using their OAuth token.
With "Service Accounts", landing in a couple of months, you'd be able to grant this permission directly. In the interim, what you'll need to do is create a Group, grant the Group an "Uploader" permission to the target folder.
When the user signs in to your application, you can add them to the Group, which will give them permission to copy/move files into the target folder.
サインインしてコメントを残してください。
コメント
1件のコメント