You can move users from one organization to another with the mergeOrganization method.
Permission to run the request: Account Owner, Administrator.
Parameters
Parameter | Type | Description |
---|
credentials (required) | credentials | Read the description of the Credentials object. |
dstOrganizationId (required) | int | Destination organization ID. All users and groups will be moved from the source to the destination organization. |
srcOrganizationId (required) | int | ID 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
Parameter | Type | Description |
---|
success | bool | 'True' if the organization has been moved. |
Possible Errors
Error | Description |
---|
Permission denied | You have no permissions to delete the specified organization. |
Wrong parameters | The 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