Skip to main content
Question

Sharing a folder with app

  • May 22, 2025
  • 4 replies
  • 31 views

Forum|alt.badge.img

Hi everyone,

i cannot find any way to share a folder with box app. I would like my box app  to write/read files to an existing folder in box.

I am using the python SDK

basically under the hood I see that the call to 

https://api.box.com/2.0/folders/<removed>/items is failing.

I tried also to generate a link and access the folder using the SDK example

folder = client.get_shared_item('https://app.box.com/s/gjasdasjhasd', password='letmein')

Any tips ?

p.s I do not have access to the Admin console 

 

Thanks,

Lior

4 replies

Forum|alt.badge.img

Hello, 

Can you share the error message you're receiving when you try to do this?

Best, 

Kourtney


Forum|alt.badge.img

Basically it is a 404 error that folder is not found (as my app does not have permission to view it)

'message': "Invalid value 'd_<removed>'. "
"'folder' with value 'd_<removed>' "
'not found',
'name': 'folder',
'reason': 'invalid_parameter'}]},

Ideally Box will allow me to share a folder from the UI will apps (by providing app name or id)


Forum|alt.badge.img

I suspect you're using a JWT authentication, which means that the default token your using is associated with the applications service account. You can confirm this by making a call to the get current user endpoint. 

You'll need to use a token associated with someone that already has access to the content, or add this user as a collaborator. 

Unfortunately, you won't be able to view a service account via the UI without access to the admin console, but you can take the email address returned via the get current user call (AutomationUser) and add it via the UI as a collaborator, just as you would with any other user. 

Hope that helps a bit! 

Best, 

Kourtney 


Forum|alt.badge.img

Thanks for your feedback