YouTrack Standalone 2017.2 Help

GET Role

GET /admin/role/{role}

Get a role by its name.

GET /rest/admin/role/{role}

Request parameters:

Name

Type

Description

role

roleByName

Role name

Response parameters:

Name

Description

name

Role name.

description

Role description.

permissionsUrl

Url to get role permissions from.

Sample

Request

GET https://example.com/youtrack/rest/admin/role/Admin Cookie: $Version=0; JSESSIONID=vr190avr41j1jh2faa4gigh2; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 212 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <role name="Admin" description="Admin can do everything." permissionsUrl="https://example.com/youtrack/rest/admin/role/Admin/permission"/>

Request

GET https://example.com/youtrack/rest/admin/role/Adfds Cookie: $Version=0; JSESSIONID=vr190avr41j1jh2faa4gigh2; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 404 Not Found Content-Type: application/xml;charset=UTF-8 Content-Length: 95 <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Role [ Adfds ] not found.</error>
Last modified: 7 March 2019