collaborator calling functions on files got "insufficient permission"
CompletedHi team,
I have an app that needs to access the content of files belonging to users under the same Enterprise. After reading https://support.box.com/hc/en-us/community/posts/4416426377747-Application-access-to-the-user-s-content, I chose to add the app as a collaborator for each folder the app will access.
However, when the app try to get the download URL of certain files residing in the shared folders, it get the "Access denied - insufficient permission" error. It encounter the same issue when trying to read the content of the files.
I have given the co-owner
privilege to the collaborator, but it still lack sufficient permissions. According to https://support.box.com/hc/en-us/community/posts/1500001297702-Nodejs-SDK-Download-File-access-denied-insufficient-permissions-Access-denied, a co-owner
collaborator should be able to download and read the content of files in a shared folder.
Could you please kindly advise a solution? I would greatly appreciate it.
- checked the app can read items in a shared folder after given collaborator
- I have made some changes on the setting of the app but might not related to read permissions. should i have to submit review again even though it's authorised?
- i can furthest got file info by using following code
```
from boxsdk import JWTAuth, Client
auth = JWTAuth.from_settings_file('./box_config.json')
client = Client(auth)
service_account = client.user().get()
print(f'Service Account user ID is {service_account.id}')
folder = client.folder(folder_id='279155317806').get()
file = client.file('1582103298404').get()
```
Please sign in to leave a comment.
Comments
1 comment