YouTrack Standalone 2017.3 Help

GET User Roles

GET /admin/user/{login}/role

Get all roles assigned for a user.

GET /rest/admin/user/{login}/role

Request parameters:

Name

Type

Description

login

string

Login name of a user.

response parameters:

Name

Description

name

Role name.

projects

Projects, that role is applied in.

Sample

Request:

GET /rest/admin/user/root/role

Response:

<userRoles> <userRole name="Admin"> <projects/> </userRole> <userRole name="Observer"> <projects> <projectRef id="E" url="https://example.com/youtrack/rest/admin/project/E" /> </projects> </userRole> serRoles>
Last modified: 7 March 2019