Skip to content
Skip to Content
Coder Docs

Get organization member

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

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

organization*string

Organization ID

user*string

User ID, name, or me

Response Body

OK

application/json
  1. response
avatar_url?string
created_at?string
Formatdate-time
email?string
global_roles?array<>
has_ai_seat?boolean

HasAISeat intentionally omits omitempty so the API always includes the field, even when false.

is_service_account?boolean
last_seen_at?string
Formatdate-time
login_type?codersdk.LoginType
Value in"""password""github""oidc""token""none"
name?string
organization_id?string
Formatuuid
roles?array<>
status?string
Value in"active""suspended"
updated_at?string
Formatdate-time
user_created_at?string
Formatdate-time
user_id?string
Formatuuid
user_updated_at?string
Formatdate-time
username?string

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

curl -X GET \	"$CODER_URL/api/v2/organizations/{organization}/members/{user}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "avatar_url": "string",  "created_at": "2019-08-24T14:15:22Z",  "email": "string",  "global_roles": [    {      "display_name": "string",      "name": "string",      "organization_id": "string"    }  ],  "has_ai_seat": true,  "is_service_account": true,  "last_seen_at": "2019-08-24T14:15:22Z",  "login_type": "",  "name": "string",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "roles": [    {      "display_name": "string",      "name": "string",      "organization_id": "string"    }  ],  "status": "active",  "updated_at": "2019-08-24T14:15:22Z",  "user_created_at": "2019-08-24T14:15:22Z",  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",  "user_updated_at": "2019-08-24T14:15:22Z",  "username": "string"}