You can move users from one organization to another by sending the POST request to the following URL: /organization/<desination_organization_id>/merge/<source_organization_id>.

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, then users from those groups will be combined into one group. 

Permission to run the request: Account Owner, Administrator. 


Request Headers

ParameterDescription
X-Auth-Account-Url (required)Base URL of the account, e.g. http://myaccount.ispringlearn.com
X-Auth-Email (required)Administrator e-mail address.
X-Auth-Password (required)Administrator password.

After the request has been completed, the system returns the response with Code 200.

 

Possible Response Codes

CodeTextDescription
400Bad RequestThe organization with the specified ID was not found or the source organization has been set to default.
403Permission deniedYou have no permissions to delete the specified organization.
200OKThe specified organization has been deleted and users moved to the destination organization.

Sample Request

POST/organization/2/merge/3 HTTP/1.1
Host: api.ispringonline.com
X-Auth-Account-Url: http://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password
XML

Sample Response

HTTP/1.1 200 OK
Connection: close
XML