YouTrack Standalone 7.0 Help

GET Roles

GET /admin/role

Get all roles available on the YouTrack server.

GET /rest/admin/role

Sample

Request

GET http://localhost:8081/rest/admin/role 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: 1678 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <roleRefs> <role name="Admin" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/Admin"/> <role name="Observer" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/Observer"/> <role name="Reporter" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/Reporter"/> <role name="Developer" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/Developer"/> <role name="jira-administrators_GRVY" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/jira-administrators_GRVY"/> <role name="Anyone_GRVY" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/Anyone_GRVY"/> <role name="idea-developers_GRVY" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/idea-developers_GRVY"/> <role name="scala-developers_GRVY" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/scala-developers_GRVY"/> <role name="idea-admins_GRVY" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/idea-admins_GRVY"/> <role name="jira-administrators_HBR" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/jira-administrators_HBR"/> <role name="Anyone_HBR" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/Anyone_HBR"/> <role name="jira-users_HBR" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/jira-users_HBR"/> <role name="idea-developers_HBR" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/idea-developers_HBR"/> <role name="idea-qa_HBR" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/role/idea-qa_HBR"/> </roleRefs>
Last modified: 29 September 2016