{"id":21010,"date":"2023-01-26T08:10:54","date_gmt":"2023-01-26T08:10:54","guid":{"rendered":"https:\/\/44.225.35.201\/testrail\/docs\/801\/api-manual\/reference\/roles\/"},"modified":"2023-01-26T17:18:47","modified_gmt":"2023-01-26T08:18:47","slug":"api-roles","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/api-manual\/reference\/api-roles\/","title":{"rendered":"\u30ed\u30fc\u30eb"},"content":{"rendered":"<p>\u30ed\u30fc\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u6b21\u306e API \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"getroles\">get_roles<\/h2>\n<p>\u5229\u7528\u53ef\u80fd\u306a\u30ed\u30fc\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>TestRail 7.3 \u4ee5\u964d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/strong><\/p>\n<div class=\"callout\"><\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">GET index.php?\/api\/v2\/get_roles<\/pre>\n<div class=\"et_pb_module et_pb_text et_pb_text_3 docs-table  et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<h3>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9 (TestRail Professional)<\/h3>\n<p>\u5178\u578b\u7684\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"et_pb_module et_pb_code et_pb_code_1 docs-code-block\">\n<div class=\"et_pb_code_inner\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"offset\": 0,\n    \"limit\": 250,\n    \"size\": 2,\n    \"_links\": {\n        \"next\": null,\n        \"prev\": null\n    },\n    \"roles\": [\n        {\n            \"id\": 3,\n            \"name\": \"Tester\",\n            \"is_default\": false\n        },\n        {\n            \"id\": 1,\n            \"name\": \"Lead\",\n            \"is_default\": true\n        }\n    ]\n}<\/pre>\n<\/div>\n<\/div>\n<div class=\"et_pb_module et_pb_text et_pb_text_4 docs-table  et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<h3>\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9 (TestRail Enterprise)<\/h3>\n<p>\u5178\u578b\u7684\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"et_pb_module et_pb_text et_pb_text_5  et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">{\n    \"offset\": 0,\n    \"limit\": 250,\n    \"size\": 2,\n    \"_links\": {\n        \"next\": null,\n        \"prev\": null\n    },\n    \"roles\": [\n        {\n            \"id\": 3,\n            \"name\": \"Tester\",\n            \"is_default\": false,\n            \"is_project_admin\": false\n        },\n        {\n            \"id\": 1,\n            \"name\": \"Lead\",\n            \"is_default\": true,\n            \"is_project_admin\": false\n        }\n    ]\n}<\/pre>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u6b21\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table class=\"table table--hover\">\n<thead>\n<tr>\n<th style=\"width: 163.893px;\">\u540d\u524d<\/th>\n<th style=\"width: 110.117px;\">\u30bf\u30a4\u30d7<\/th>\n<th style=\"width: 416.094px;\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"width: 155.872px;\">id<\/td>\n<td style=\"width: 102.096px;\">integer<\/td>\n<td style=\"width: 408.073px;\">\u30ed\u30fc\u30eb\u306e ID<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 155.872px;\">name<\/td>\n<td style=\"width: 102.096px;\">string<\/td>\n<td style=\"width: 408.073px;\">\u30ed\u30fc\u30eb\u306e\u540d\u524d<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 155.872px;\">is_default<\/td>\n<td style=\"width: 102.096px;\">boolean<\/td>\n<td style=\"width: 408.073px;\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e6\u30fc\u30b6\u30fc \u30ed\u30fc\u30eb\u306e\u5834\u5408\u306f true<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 155.872px;\">is_project_admin<\/td>\n<td style=\"width: 102.096px;\">boolean<\/td>\n<td style=\"width: 408.073px;\">\u30ed\u30fc\u30eb\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u30ec\u30d9\u30eb\u306e\u7ba1\u7406\u8005\u6a29\u9650\u304c\u3042\u308b\u5834\u5408\u306f true(TestRail Enterprise \u304c\u5fc5\u8981\u3067\u3059)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30fc\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u6b21\u306e API \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 get_roles \u5229\u7528\u53ef\u80fd\u306a\u30ed\u30fc\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002 TestRail 7.3 \u4ee5\u964d\u304c\u5fc5\u8981\u3067\u3059\u3002 GET index.php?\/api\/v2\/g [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":6632,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-21010","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/comments?post=21010"}],"version-history":[{"count":7,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21010\/revisions"}],"predecessor-version":[{"id":21022,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/21010\/revisions\/21022"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/6632"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/media?parent=21010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}