YouTrack Standalone 2017.1 Help

Get User by Login Name

GET /user/{user}

Get user by login name

GET /rest/user/{user}

Request parameters:

NameTypeDescription
useruserByLoginLogin name of a user to get info about.

Response parameters:

NameDescription
fullNameUser's full name.
emailUser's email.
lastCreatedProjectShort name of the project, where last user's issue was created.
filterProjectShort name of the project, that is set as filter project on issues list.

Sample

Sample 1

Request

GET http://localhost:8081/rest/user/root Connection: keep-alive Cookie: $Version=0; JSESSIONID=342efpzevk821sa2fh6oszm07; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 403 Forbidden Content-Type: text/plain Transfer-Encoding: chunked Server: Jetty(6.1.23) <error>You have no rights to read user.</error>

Sample 2

Request

GET http://localhost:8081/rest/user/app_exception Connection: keep-alive Cookie: $Version=0; JSESSIONID=342efpzevk821sa2fh6oszm07; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 150 Server: Jetty(6.1.23) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <user lastCreatedProject="HBR" email="vadim.gurov@gmail.com" fullName="Application Exception"/>
Last modified: 18 April 2017