Skip to main content
Question

Move files from app service account to user account using box.sdk.gen

  • March 13, 2025
  • 1 reply
  • 9 views

Forum|alt.badge.img

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?

1 reply

pchristensen Box
  • Senior Staff Platform Solutions Engineer
  • 22 replies
  • March 17, 2025

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings