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

REST API get permission of document and folder for current user

New post

Comments

1 comment

  • jcleblanc

    Hi ,

     

    I'm not 100% sure of what you're looking to do. Is it that you have an application with those permissions, and want to get a file for another user but it's not working?

     

    If so, this is most likely due to the access token that you have being scoped for a different user. For instance, when you first authenticate as a JWT application, you'll typically be referencing the service account, instead of a user. You will need to do 1 of two things:

    • Make a request using the as-user header, or generate a user access token for the account that owns the file. You can then use the request to get a file / folder.
    • Collaborate the service account into the file / folder that you would want to have access to. This will allow the service account itself permission to get that file.

    Hope that helps, but if there's something else going on please let me know and I can try to provide some additional guidance.

    0
    Comment actions Permalink

Please sign in to leave a comment.