---
title: "Get site member roles"
method: GET
path: "/api/v2/users/roles"
tags: ["Members"]
---

# Get site member roles

`GET /api/v2/users/roles`

## Response `200`

OK

- CodersdkAssignableRoles[]
  - `assignable` boolean
  - `built_in` boolean — BuiltIn roles are immutable
  - `display_name` string
  - `name` string
  - `organization_id` string, uuid
  - `organization_member_permissions` CodersdkPermission[] — OrganizationMemberPermissions are specific for the organization in the field 'OrganizationID' above.
    - `action` 'application_connect' | 'assign' | 'create' | 'create_agent' | 'delete' | 'delete_agent' | 'read' | 'read_personal' | 'ssh' | 'share' | 'unassign' | 'update' | 'update_agent' | 'update_personal' | 'use' | 'view_insights' | 'start' | 'stop'
    - `negate` boolean — Negate makes this a negative permission
    - `resource_type` '*' | 'ai_gateway_key' | 'ai_model_price' | 'ai_provider' | 'ai_seat' | 'aibridge_interception' | 'api_key' | 'assign_org_role' | 'assign_role' | 'audit_log' | 'boundary_log' | 'boundary_usage' | 'chat' | 'connection_log' | 'crypto_key' | 'debug_info' | 'deployment_config' | 'deployment_stats' | 'file' | 'group' | 'group_member' | 'idpsync_settings' | 'inbox_notification' | 'license' | 'notification_message' | 'notification_preference' | 'notification_template' | 'oauth2_app' | 'oauth2_app_code_token' | 'oauth2_app_secret' | 'organization' | 'organization_member' | 'prebuilt_workspace' | 'provisioner_daemon' | 'provisioner_jobs' | 'replicas' | 'system' | 'tailnet_coordinator' | 'task' | 'template' | 'usage_event' | 'user' | 'user_secret' | 'user_skill' | 'webpush_subscription' | 'workspace' | 'workspace_agent_devcontainers' | 'workspace_agent_resource_monitor' | 'workspace_build_orchestration' | 'workspace_dormant' | 'workspace_proxy'
  - `organization_permissions` CodersdkPermission[] — OrganizationPermissions are specific for the organization in the field 'OrganizationID' above.
    - `action` 'application_connect' | 'assign' | 'create' | 'create_agent' | 'delete' | 'delete_agent' | 'read' | 'read_personal' | 'ssh' | 'share' | 'unassign' | 'update' | 'update_agent' | 'update_personal' | 'use' | 'view_insights' | 'start' | 'stop'
    - `negate` boolean — Negate makes this a negative permission
    - `resource_type` '*' | 'ai_gateway_key' | 'ai_model_price' | 'ai_provider' | 'ai_seat' | 'aibridge_interception' | 'api_key' | 'assign_org_role' | 'assign_role' | 'audit_log' | 'boundary_log' | 'boundary_usage' | 'chat' | 'connection_log' | 'crypto_key' | 'debug_info' | 'deployment_config' | 'deployment_stats' | 'file' | 'group' | 'group_member' | 'idpsync_settings' | 'inbox_notification' | 'license' | 'notification_message' | 'notification_preference' | 'notification_template' | 'oauth2_app' | 'oauth2_app_code_token' | 'oauth2_app_secret' | 'organization' | 'organization_member' | 'prebuilt_workspace' | 'provisioner_daemon' | 'provisioner_jobs' | 'replicas' | 'system' | 'tailnet_coordinator' | 'task' | 'template' | 'usage_event' | 'user' | 'user_secret' | 'user_skill' | 'webpush_subscription' | 'workspace' | 'workspace_agent_devcontainers' | 'workspace_agent_resource_monitor' | 'workspace_build_orchestration' | 'workspace_dormant' | 'workspace_proxy'
  - `site_permissions` CodersdkPermission[]
    - `action` 'application_connect' | 'assign' | 'create' | 'create_agent' | 'delete' | 'delete_agent' | 'read' | 'read_personal' | 'ssh' | 'share' | 'unassign' | 'update' | 'update_agent' | 'update_personal' | 'use' | 'view_insights' | 'start' | 'stop'
    - `negate` boolean — Negate makes this a negative permission
    - `resource_type` '*' | 'ai_gateway_key' | 'ai_model_price' | 'ai_provider' | 'ai_seat' | 'aibridge_interception' | 'api_key' | 'assign_org_role' | 'assign_role' | 'audit_log' | 'boundary_log' | 'boundary_usage' | 'chat' | 'connection_log' | 'crypto_key' | 'debug_info' | 'deployment_config' | 'deployment_stats' | 'file' | 'group' | 'group_member' | 'idpsync_settings' | 'inbox_notification' | 'license' | 'notification_message' | 'notification_preference' | 'notification_template' | 'oauth2_app' | 'oauth2_app_code_token' | 'oauth2_app_secret' | 'organization' | 'organization_member' | 'prebuilt_workspace' | 'provisioner_daemon' | 'provisioner_jobs' | 'replicas' | 'system' | 'tailnet_coordinator' | 'task' | 'template' | 'usage_event' | 'user' | 'user_secret' | 'user_skill' | 'webpush_subscription' | 'workspace' | 'workspace_agent_devcontainers' | 'workspace_agent_resource_monitor' | 'workspace_build_orchestration' | 'workspace_dormant' | 'workspace_proxy'
  - `user_permissions` CodersdkPermission[]
    - `action` 'application_connect' | 'assign' | 'create' | 'create_agent' | 'delete' | 'delete_agent' | 'read' | 'read_personal' | 'ssh' | 'share' | 'unassign' | 'update' | 'update_agent' | 'update_personal' | 'use' | 'view_insights' | 'start' | 'stop'
    - `negate` boolean — Negate makes this a negative permission
    - `resource_type` '*' | 'ai_gateway_key' | 'ai_model_price' | 'ai_provider' | 'ai_seat' | 'aibridge_interception' | 'api_key' | 'assign_org_role' | 'assign_role' | 'audit_log' | 'boundary_log' | 'boundary_usage' | 'chat' | 'connection_log' | 'crypto_key' | 'debug_info' | 'deployment_config' | 'deployment_stats' | 'file' | 'group' | 'group_member' | 'idpsync_settings' | 'inbox_notification' | 'license' | 'notification_message' | 'notification_preference' | 'notification_template' | 'oauth2_app' | 'oauth2_app_code_token' | 'oauth2_app_secret' | 'organization' | 'organization_member' | 'prebuilt_workspace' | 'provisioner_daemon' | 'provisioner_jobs' | 'replicas' | 'system' | 'tailnet_coordinator' | 'task' | 'template' | 'usage_event' | 'user' | 'user_secret' | 'user_skill' | 'webpush_subscription' | 'workspace' | 'workspace_agent_devcontainers' | 'workspace_agent_resource_monitor' | 'workspace_build_orchestration' | 'workspace_dormant' | 'workspace_proxy'

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/6d962c4d3a64/schema)
