Skip to main content

Hi All.

 

I am working on downloading some files and folders from box. I have two apps, one created back in 2022 and one created last week. The two apps have identical setup (apart from the old one having the “App Details” option set to “Select an option”),

When attempting to download the files with the old one all is good and the files are downloaded. However when I use the new one I receive the following response for downloading the files: “access_denied_insufficient_permissions”.

It is very odd as they use the same code to generate the auth token and url (files/{fileId}/content). As mentioned the permissions are the same:

  • Authentication method: OAuth 2.0 with JSON Web Tokens(Server Authentication);
  • App Access Level: App + Enterprise Access;
  • Application scopes: All selected;
  • Advanced features: All selected;

Both apps are authorized.

I even added a check with url: “/files/{field.id}?fields=permissions,created_by”, and the “can_download” permission is set to “true”.

So far I cannot narrow down what is the cause of the new app failing.

Any help will be most welcome.

Thanks in advance!

Be the first to reply!

Reply