Java Box SDK connection and operations
Has anyone been able to use the java SDK to upload or download files successfully? Get the folder/file tree structure? Find the location of their folders? I'm using the Enterprise API Connection as an Enterprise User. I can authenticate but I'm not able to pull files.
-
Hi Kourtney,
Thanks for the response. We ended up changing direction with this project. However, now we have authenticated successfully with our Box Service Account, but we are blocked when trying to add collaborators to a file:
The API returned an error code [403 | a0hnrogto08t9b5w.0a7cadfb34d3b3cc9c6438c0d2b134528] access_denied_insufficient_permissions - Access denied - insufficient permission
at com.box.sdk.BoxAPIResponse.<init>(BoxAPIResponse.java:92)Does this matter if the app is a vendor app or custom? -
Hey Steven,
Great to hear you were able to authenticate! I took a look on the backend and the error I'm seeing related to this 403 is: Missing+permissions+item_create_view_path_collab.
I suspect the user associated with your access token has a collaboration using can_view_path. This means that while they can see the names of the folders at the top of the hierarchy, they are only added as a collaborator lower in the tree. This means they do not directly have access at this level to add other collaborators.
Options here would be either to use an access token associated with a user that does have direct collaboration access at this level or add the current user higher up in the folder tree.
Hope this helps!
Best,
Kourtney, Box Developer Advocate
サインインしてコメントを残してください。
コメント
3件のコメント