I’m trying to transfer files and folders from one Box user to another. The technique is described in this post:
developer.box.com/guides/users/deprovision/transfer-folders/#collaboration-transfer-method
The last step of the process is to remove access for the owner by removing the collaboration:
developer.box.com/guides/users/deprovision/transfer-folders/#remove-transfer-from-user-as-owner
However, when you use the API to get collaborations of files and folders using the API, the API only returns the collaborations of users other than the current owner.
There was a similar post about this issue in:
How to get Owner's collaboration ID through Box API – Box Support
The answer there was to use the API to transfer ownership - using this API:
https://developer.box.com/reference/put-users-id-folders-0/
The problem with that is that the whole point of using the Collaboration Transfer method was to avoid doing a synchronous ownership transfer so using the transfer folder is not solving the problem. So, the question remains - how to access collaboration ID of the owner.