Skip to main content

How do I programmatically move files from my app service account to user accounts? I need to distribute app-uploaded files between the users. I am using box.sdk.gen API. What is the allocated space limit for the service account with a business plus subscription?

Hi markturek

 

There are two ways you can provide access to the files for your users.

  1. Move the files to a folder the user has access to (and your app service account has access to). This would move the file and potentially change ownership depending on who owns the target folder
    Assuming this is python: https://github.com/box/box-python-sdk-gen/blob/main/docs/files.md#update-file
     
  2. Collaborate the user on the file in question. This would leave the file where it is but give the user access, although ideally you would stick with folder collaborations for scale
    https://github.com/box/box-python-sdk-gen/blob/main/docs/user_collaborations.md#create-collaboration

    There is no specific space limit for service accounts. You can set the limit on the user object
    https://developer.box.com/reference/put-users-id/#param-space_amount

    Hope this helps
    Rgds
    Peter Christensen, Platform Solutions Engineer, Box

Reply