Do box have single delete user api that will help to transfer folder as well as delete the box user?

Highlighted
Occasional Contributor

Do box have single delete user api that will help to transfer folder as well as delete the box user?

Before deleting a user from box system we can transfer the root folder from one user account to
another.
Once the root folder is transfered only then delete api muat be triggered.
So in all, the delete operation will have to call two api one to transfer and another to delete.

But as the transfer api call will return synchronously. 
For users with a large number of files and folders, this means the call could take minutes or hours to return.

So the delete operation will be in pending state until we receive the transfer api response. 

 

Do box have single delete box user api that will help to transfer as well as delete the box user?

4 REPLIES 4
Highlighted
Box Employee

Re: Do box have single delete user api that will help to transfer folder as well as delete the box u

@sailpointdev As you mentioned, this operation requires two API calls. Unfortunately, we don't have an API endpoint that would support moving a user's content and deleting that user's account in one API call. 

Occasional Contributor

Re: Do box have single delete user api that will help to transfer folder as well as delete the box u

hi @Murtza

 

Thanks for quick update, existing file or folder transfer api is synchronous in nature.

If the size of the file is huge transfer will take good amount of time and delete box user api will not be triggered

as the earlier transfer api result are not returned.

 

As the Delete box user api is dependent on transfer api it will be difficult for our client to wait for the result of transfer api.

 

Regards,

Imran

Highlighted
Occasional Contributor

Re: Do box have single delete user api that will help to transfer folder as well as delete the box u

Hi @Murtza,

 

Do we have any update on this?

Does box now have single API call to delete box user and also transfer the folder?

 

Highlighted
Box Employee

Re: Do box have single delete user api that will help to transfer folder as well as delete the box u

Hi @sailpointdev !

 

Thanks for checking back in on this. At the current time, this action still requires two calls; however, you can check out some more strategies for deprovisioning users here: https://developer.box.com/guides/users/deprovision

 

I'd also recommend raising this as a product feedback request at pulse.box.com. I did a preliminary search and I don't see a topic already raised that matches this desire, so expressing the need for this item in that forum will help to get visibility onto this topic.