Skip to main content

List users in the application's user scope

List users in the application's user scope. GET /api/openapi/v1/users, scope admin.v1.user-directory.read.

  • Scope: admin.v1.user-directory.read
  • Permission: Read users and departments (user-directory)
  • Permission type: Read
  • Endpoint: GET/api/openapi/v1/users

Authentication and request headers

Call with an application API key. This endpoint checks only the scope above; read, manage and execute permissions do not imply one another.
NameLocationTypeRequiredDescriptionExample
AuthorizationheaderstringYesApplication API key, passed as a Bearer token.Bearer qwk_***
X-Request-IdheaderstringNoOptional request tracing identifier; generated by the server if omitted.req-20260831-001

Request parameters

NameLocationTypeRequiredDescriptionExample
third_party_user_idsqueryarray | nullNoRepeated third-party user IDs (at most 100; each 1-255 characters after trimming). Case-sensitive exact match, intersected with other filters and application user scope. Empty values are rejected. Omit to leave this filter unset.["<string>"]
keywordquerystringNoSearch keyword"<string>"
department_idquerystring · uuidNoDepartment (department ID)"<uuid>"
statusquerystringNoUser status"pending"
seat_statusquerystringNoSeat assignment"assigned"
pagequeryinteger · int64NoPage number1
page_sizequeryinteger · int64NoPage size20

Request example

cURL

Responses

200 OK
NameTypeRequiredDescriptionExample
itemsarray | nullYesUser list.[{"account":"<string>","department_ids":["<string>"],"email":"<string>","job_number":"<string>","name":"<string>","phone":"<string>","qid":"<uuid>","seat_status":"assigned","source":"manual","status":"pending","updated_at":"2026-08-27T10:00:00Z","third_party_user_id":"external-001","departments":[{"id":"22222222-2222-4222-8222-222222222222","name":"Engineering","path":"Company/Engineering","external_id":"external-dept","is_primary":true}],"credential":{"password_state":"active","must_change_password":false,"credential_version":2},"created_at":"2026-09-19T01:00:00Z","last_active_at":"2026-09-23T01:00:00Z"}]
pageinteger · int64YesPage number0
page_sizeinteger · int64YesPage size0
totalinteger · int64YesTotal count0
items[].third_party_user_idstringYesExternal user ID; an empty string when unset."external-001"
items[].departmentsarrayYesDepartment details; an empty array when no departments are assigned.[{"id":"22222222-2222-4222-8222-222222222222","name":"Engineering","path":"Company/Engineering","external_id":"external-dept","is_primary":true}]
items[].credentialobjectYesPassword lifecycle metadata; contains no password or hash.{"password_state":"active","must_change_password":false,"credential_version":2}
items[].created_atstring · date-timeYesUser creation time."2026-09-19T01:00:00Z"
items[].last_active_atstring · date-timeNoLatest IAM activity time; omitted when unavailable. This is not the latest business activity time."2026-09-23T01:00:00Z"
items[].departments[].idstring · uuidYesDepartment ID.-
items[].departments[].namestringYesDepartment name.-
items[].departments[].pathstringYesDepartment path.-
items[].departments[].external_idstringNoExternal department ID; omitted when unset.-
items[].departments[].is_primarybooleanYesWhether this is the primary department.-
items[].credential.password_statestringYesPassword state: unset (not set), initial (initial password), or active (active password).-
items[].credential.must_change_passwordbooleanYesWhether a password change is required.-
items[].credential.credential_versionintegerYesCredential version.-
items[].credential.password_updated_atstring · date-timeNoPassword update time; omitted when unavailable.-
items[].credential.first_login_completed_atstring · date-timeNoFirst completed sign-in time; omitted before completion.-
Response example
default Flat business error
NameTypeRequiredDescriptionExample
codestringNoStable business error code"<string>"
detailstringYesHuman-readable error description"<string>"
detailsOpenapiErrorDetailsNoError details{"field":"<string>","reason":"<string>","suggestion":"<string>"}
details.fieldstringNoRequest field that failed validation"<string>"
details.reasonstringNoStable validation failure reason"<string>"
details.suggestionstringNoSuggested normalized value"<string>"
errorstringYesStable HTTP error type"<string>"
Response example
List users in the application's user scope - QwenWork