Welcome to the new Box Support website. Check out all the details here on what’s changed.

Java Box SDK connection and operations

New post

Comments

3 comments

  • Kourtney

    Hey Steven, 

    Are you receiving a 404 when you try to access your content or another error you can provide? Are you using a jwt authentication app? 

    Best,

    Kourtney, Box Developer Advocate

    0
    Comment actions Permalink
  • Steven Anderson

    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?
    0
    Comment actions Permalink
  • Kourtney

    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 

    0
    Comment actions Permalink

Please sign in to leave a comment.