YouTrack Standalone 2017.1 Help

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}

Parameters:

NameTypeDescription
loginstringLogin name of a user account to which another user account should be merged. After merging, this account will be preserved.
login_to_mergestringLogin name of a user account which should be merged into the specified account, and deleted.

Samples

Sample 1

Rest API request fails, because the specified login name is not found.

Request:

POST http://bootster.myjetbrains.com/youtrack/rest/admin/user/anna/merge/ann123

Response:

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.

Request:

POST http://bootster.myjetbrains.com/youtrack/rest/admin/user/anna/merge/anna123

Response:

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: 18 April 2017