ONLYOFFICE DocSpace icon

ONLYOFFICE DocSpace

Consume ONLYOFFICE DocSpace API

User → Delete User

AI-generated

Summary

Deletes a user from ONLYOFFICE DocSpace by ID via a single PUT to api/2.0/people/delete, and returns the API's response for the deleted user.

Inputs

  • Authentication (required) — Credential type used for the request: API Key (default), Basic Auth, OAuth2, or Personal Access Token. The matching credential must be configured.
  • User ID (required) — The user to delete, chosen as a resource locator. 'From List' is searchable and lists only disabled users (status 2), fetched from the people status search endpoint. 'Manual' accepts an ID string or expression. Only one user is deleted per input item.

Output shape

One output item per input item, containing the response payload from the DocSpace delete call (the API's returned data for the deleted user).

The source does not fetch user details before deleting, so the output is whatever the API returns, not a pre-delete snapshot. If the API returns an array, it is split into multiple items. With 'Continue On Fail' enabled, a failed item outputs {error: message}. Otherwise the node throws an API error. The 'From List' picker only shows disabled users. DocSpace may require a user to be disabled before deletion, but the source does not enforce this. Manual mode lets you pass any ID.

Examples

Example 1: Clean up a disabled former employee's account chosen from a dropdown.

Resource: User; Operation: Delete User; Authentication: API Key; User ID mode: From List, select the disabled user.

Example 2: Delete a user whose ID comes from an earlier node, such as Search User.

Resource: User; Operation: Delete User; User ID mode: Manual, value set to the expression {{ $json.id }}.

Links

Discussion