You can move users from one organization to another with the mergeOrganization method.

Permission to run the request: Account Owner, Administrator. 

Parameters

Parameter

TypeDescription
credentials (required)credentialsRead the description of the Credentials object.
dstOrganizationId (required)intDestination organization ID. All users and groups will be moved from the source to the destination organization.
srcOrganizationId (required)intID of the source organization from which all users and groups will be moved to the destination organization.

The source organization will be deleted. Its users and groups will be moved to the destination organization. If both organizations have groups with the same names, their users will end up in one group. 

Return Value

ParameterTypeDescription
successbool'True' if the organization has been moved.

Possible Errors

ErrorDescription
Permission deniedYou have no permissions to delete the specified organization.
Wrong parametersThe organization with the specified ID was not found or the source organization has been set to default.

Sample Call

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <MergeOrganizationRequest>
      <credentials>
        <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
        <email>email@email.com</email>
        <password>password</password>
      </credentials>
      <dstOrganizationId>2</dstOrganizationId>
      <srcOrganizationId>1</srcOrganizationId>
    </MergeOrganizationRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML

Sample Response

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <successResult>
      <success>true</success>
    </successResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML