Skip to main content
Question

How to keep metadata in migration process

  • May 21, 2025
  • 2 replies
  • 23 views

Forum|alt.badge.img

Hi,

 

I'm moving content from SharePoint document library to Box and I must keep who created/modified and when happened. I could set ContentCreatedAt and ContentModifiedAt but I couldn't find a way to set set CreatedBy/ModifiedBy field with a specific, is there a way to set these fields?

2 replies

Forum|alt.badge.img

 You have two options to accomplish this: 

 

Option 1

To store the created_by metadata, you can upload the file as that user. To store the modified_by metadata, you can upload a new file version as that user. You can use the As-User header for both of these calls to make calls on behalf of a user.

 

Option 2 

You can create a custom metadata template for this metadata, and apply this metadata template to files that are part of this migration. The tradeoff for this approach is introducing additional complexity to your Box instance, but the benefit is more flexibilty on what metadata you can store. 

 


Forum|alt.badge.img

Can you help me to understand how you pass the values in ContentCreatedAt and contentModifiedAt while uploading the file. My requirement is to upload the pdf file with created date as backdated. So I am using the contentCreatedAt to store the backdated date field.