How to use pasteItem2 method to move user folder
Could anyone help to understand why I'm getting below error while using pasteItem2 either normal user or admin user
Client received SOAP Fault from server: access denied for user to path paste. Please see the server log to find more detail regarding exact cause of the failure.
Here is my java code
FileDataSource fileDataSource = new FileDataSource(sArchieveFullPath); DataHandler pasteHandler = new DataHandler(fileDataSource); m_webCatalogService.pasteItem2 (pasteHandler, sDestPath, 1, 3, 1, null, sAdminSessId)
So, what actually I trying to achieve
I will have source and destination POD. Since, only specific user has access to /users/ folder, so, using impersonate login. I copied specific folder and now I'm trying to paste this folder to destination POD using admin user and/or same user, which was used while copying. But, when calling pasteItem2 method, I'm getting above error. I'm not sure, If I need to assign any specific privilege.