Skip to main content

Hi,

When uploading a new file, how does one ensure the user who created the file is also the owner?

 

We have groups for both admins and users. When we create a collaboration between a folder and a group, the role is set to 'co-owner'. This is insufficient as shown below (file creator and owner are different users). 

 

Thanks,
Sam

 

*code*


"created_by"=>{"type"=>"user", "id"=>"removed for privacy", "name"=>"Test User", 
"modified_by"=>{"type"=>"user", "id"=>"removed for privacy", "name"=>"Test User", 
"owned_by"=>{"type"=>"user", "id"=>"removed for privacy", "name"=>"Admin-DEVELOPMENT", 


Speaking in a more general sense, not specifically about the API:

 

In Box, whichever user owns a top-level folder (i.e. a folder that's not in any other folders) owns all of the files and folders within that tree.  The owner of the top-level folder defaults to whomever created it, but can be changed to be someone else.

 

Does that help any?

 

Ian



How does one change the owner through the API?



See https://docs.box.com/reference#collaboration-object

 

Hope that helps!

 

Ian



Reply