Merge Users
POST /admin/user/{login}/merge/{login_to_merge}
The method allows merging two user accounts. The account, which is merged into another one, will be automatically deleted after successful merge.
POST /admin/user/{login}/merge/{login_to_merge}
Samples
Sample 1
Rest API request fails, because the specified login name is not found.
POST http://bootster.myjetbrains.com/youtrack/rest/admin/user/anna/merge/ann123
HTTP/1.1 404 Not Found
Server: nginx
Date: Thu, 19 Dec 2013 09:42:43 GMT
Content-Type: application/xml; charset=UTF-8
Content-Length: 97
Connection: keep-alive
Vary: Accept-Encoding
Set-Cookie: JSESSIONID=1ts3re90psoj1tb03u5laoxi3;Path=/youtrack
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache, no-store, no-transform, must-revalidate
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>User [ anet123 ] not found.</error>
Sample 2
Sample of a successful REST API request to merge two user accounts.
POST http://bootster.myjetbrains.com/youtrack/rest/admin/user/anna/merge/anna123
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 19 Dec 2013 09:43:14 GMT
Content-Type: application/xml; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Vary: Accept-Encoding
Set-Cookie: JSESSIONID=acl1spjp8sn1j7jmbfw8oawg;Path=/youtrack
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache, no-store, no-transform, must-revalidate
Last modified: 2 February 2017