- Using the direct transfer owned folders API, which will move all content from one user directly to another.
- Using the collaboration transfer method to change ownership of one file or folder at a time from one user to another.
Files owned by a user will be inaccessible while they are being transferred.
This also means that any shared content owned by the user may be inaccessible
during the move.Depending on the volume of content, this operation may take a significant
amount of time.
Transfer Owned Folders API Method
The transfer owned folders endpoint is designed to move the entirety of content owned by one user over to another user.The transfer owned folders API is performed as a synchronous process, which
might lead to a slow response when the source user has a large number of
items in all of its folders.
Collaboration Transfer Method
The collaboration transfer method is a process that uses the collaboration endpoint to change the ownership of a single file or folder from one user to another instantaneously.This method will perform an instantaneous transfer of ownership of a single
file or folder, but cannot be used to transfer the root (all files and
folders) from one user to another.
transfer_from_user to transfer_to_user, will
follow these steps:
Add Transfer To User as Co-Owner
The first step is to add thetransfer_to_user account as a collaborator with
co-owner access on the file or folder that should be transferred.
Making the call as the transfer_from_user account, add the transfer_to_user
as a co-owner using the
add collaboration endpoint.
Fetch Collaboration ID as Transfer To User
The next step is make a request to get the collaboration information, making the request as thetransfer_to_user account. The collaboration object
returned will include a collaboration ID, which is used for the last step.
Making the call as the transfer_to_user account, get the collaboration on the
file or folder ID being transferred, using the
get collaboration endpoint. Capture the
collaboration ID.
Remove Transfer From User as Owner
The final step is to remove thetransfer_from_user account as an owner of the
file or folder, which is accomplished using the
delete collaboration endpoint.
Making call as the transfer_to_user account, remove the transfer_from_user
as a collaborator on the file or folder.
transfer_to_user account, and the
transfer_from_user account no longer has access.
