Get users
GET
CoderSessionTokenheader
Coder-Session-Token<token>q?stringSearch query
after_id?stringAfter ID
Format
uuidlimit?integerPage limit
offset?integerPage offset
OK
application/json- response
count?integerusers?array<>The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/users" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "count": 0, "users": [ { "avatar_url": "http://example.com", "created_at": "2019-08-24T14:15:22Z", "email": "[email protected]", "has_ai_seat": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_service_account": true, "last_seen_at": "2019-08-24T14:15:22Z", "login_type": "", "name": "string", "organization_ids": [ "7d4232d7-54a0-4c93-9c1e-a8fd2dfcdabe" ], "roles": [ { "display_name": "string", "name": "string", "organization_id": "string" } ], "status": "active", "theme_preference": "string", "updated_at": "2019-08-24T14:15:22Z", "username": "string" } ]}