Use adopt_user to create document and main file, get the document_id in case of documents with the same name