Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

JWT access folders and files

Answered
New post

Comments

3 comments

  • cbetta

    Hi , so there are 2 issues here.

     

    Firstly, when you authenticate through JWT you are not authenticated as a regular Box user, but as a Service Account. This Service Account has its own root folder and folder structure, and doesn't by default have access to folders owned by other users.

     

    The simplest way to gain access to a folder owned by another user is to either collaborate (share) that folder with the service account, or to explicitly authenticate as that user with the As-User header. 

     

    https://developer.box.com/reference#as-user-1

     

    As for your second issue, you seem to be getting that error because /folders/search is not an API endpoint we support. We do have a /search endpoint, which I think is what you were looking to use.

    0
    Comment actions Permalink
  • vk16

    Hi  , I also have the exactly same problem but I created all the folders my self these are not shared folders. I have been trying it from long time but no luck. When I give the folder id 0 it is giving me empty response. Any help would be appreciated.

    0
    Comment actions Permalink
  • cbetta

     an empty response seems odd to me. What is the HTTP status code?

    0
    Comment actions Permalink

Please sign in to leave a comment.