Skip to content
Skip to Content
Coder Docs

Get member roles by organization

GET
/api/v2/organizations/{organization}/members/roles

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

organization*string

Organization ID

Formatuuid

Response Body

OK

application/json
  1. response
[index: integer]?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/organizations/{organization}/members/roles" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
[  {    "assignable": true,    "built_in": true,    "display_name": "string",    "name": "string",    "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",    "organization_member_permissions": [      {        "action": "application_connect",        "negate": true,        "resource_type": "*"      }    ],    "organization_permissions": [      {        "action": "application_connect",        "negate": true,        "resource_type": "*"      }    ],    "site_permissions": [      {        "action": "application_connect",        "negate": true,        "resource_type": "*"      }    ],    "user_permissions": [      {        "action": "application_connect",        "negate": true,        "resource_type": "*"      }    ]  }]