v54

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-03397565628.8 KB
Users

Get user roles

get/api/v2/users/{user}/roles

Path parameters

userstring required

User ID, name, or me

Response

OK

avatar_urlstring uri
created_atstring date-time required
emailstring email required
has_ai_seatboolean

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

idstring uuid required
is_service_accountboolean
last_seen_atstring date-time
login_type'' | 'password' | 'github' | 'oidc' | 'token' | 'none'
namestring
organization_idsstring[]
status'active' | 'dormant' | 'suspended'
theme_preferencestring

Deprecated: this value should be retrieved from codersdk.UserPreferenceSettings instead.

updated_atstring date-time
usernamestring required