Skip to main content

List force logout task execution users

List force logout task execution users. GET /api/openapi/v1/force-logout-tasks/{taskId}/execution-users, scope admin.v1.force-logout-tasks.read.

  • Scope: admin.v1.force-logout-tasks.read
  • Permission: Read force-logout tasks
  • Permission type: read
  • Endpoint: GET/api/openapi/v1/force-logout-tasks/{taskId}/execution-users
Use Authorization: Bearer \<API_KEY\>. This endpoint requires an application with subject_scope={"mode":"all"}. Restricted or invalid user scopes return 403 openapi_subject_scope_denied before business execution. Scopes do not imply each other. Organization and application actor come from verified authentication, not request parameters. Returns executed tasks and persisted target-user snapshots. executed means the command was persisted, not client receipt or confirmed logout.

Common request headers

Apply the “Authentication and headers” section in “Configure the QwenWork console through APIs”: Authorization is required and X-Request-Id is optional. See this page for the required scope. Whether Idempotency-Key applies and is required is specified in this page’s request parameters; a tracing identifier does not replace an idempotency key.

Request parameters

NameLocationTypeRequiredDescriptionExample
taskIdpathstring · uuidYestaskId-
keywordquerystringNokeyword maxLength=100-

Response statuses

HTTP statusTriggerResponse structureClient action
200Request succeededSee “Response” on this pageRead the response.
defaultOther authentication, authorization, validation or dependency errorsSee “General error” in “Configure the QwenWork console through APIs”Handle the status and code; verify the result and idempotency requirements before retrying writes.

Response

Content-Type: application/json
NameTypeRequiredDescriptionExample
itemsarray\<object\>YesResults on this page.-
pageinteger · int64YesCurrent page number.-
page_sizeinteger · int64YesPage size.-
totalinteger · int64YesTotal results matching the filters.-

items[]

FieldTypeRequiredDescription
departmentsarray\<object\>YesDepartments the user belongs to.
emailstringYesUser email.
employee_nostringYesEmployee number.
user_idstring · uuidYesUser ID.
user_namestringYesUser display name.

items[].departments[]

FieldTypeRequiredDescription
idstring · uuidYesDepartment ID.
namestringYesDepartment name.
pathstringYesDepartment hierarchy path.

Errors

Uses the existing {error, detail, code} error envelope. Invalid credentials: 401/403; missing Scope or non-all user scope: 403; missing resource: 404; conflict/stale version: 409; invalid input: 400/422; unavailable dependency: 503. Business errors retain Console semantics.

Semantics and safety

Only executed tasks are supported. Existing service logic may resolve and persist missing user snapshots for historical tasks, so reads are not entirely write-free. Backfilled fields reflect directory information available during backfill, not necessarily at execution time. Results are target users, not acknowledged client logouts, and include names, emails, employee numbers and departments.