YouTrack Standalone 2019.2 Help

Get User by Login Name

GET /user/{user}

Get user by login name

GET /rest/user/{user}
Request parameters:

Name

Type

Description

user

userByLogin

Login name of a user to get info about.

Response parameters:

Name

Description

fullName

User's full name.

email

User's email.

lastCreatedProject

Short name of the project, in which the user created the most recent issue.

filterProject

Short name of the project that is set as filter project on Issues list.

Sample

Sample 1

Request
GET https://example.com/youtrack/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 <error>You have no rights to read user.</error>

Sample 2

Request
GET https://example.com/youtrack/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 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <user lastCreatedProject="HBR" email="vadim.gurov@gmail.com" fullName="Application Exception"/>
Last modified: 17 July 2019