User
Deactivate a User
Deactivates a user. Deactivated users can no longer log in but are still returned by the API (with a non-null deactivated_at).
This endpoint is idempotent — calling it on an already-deactivated user returns 200 with no change.
⚠️ SCIM integration warning: If users in your account are managed via SCIM (e.g. from Entra ID or Okta), SCIM is the source of truth for user lifecycle. Deactivating users manually via this endpoint may conflict with your SCIM provisioning setup. Use SCIM deprovisioning to deactivate users in that case.
Note: Deleted users are not accessible and will return a 404 error.
post/users/{id}/deactivate
Request
- Base URL: https://connect.workpath.com/api/v3
- URL: https://connect.workpath.com/api/v3/users/{id}/deactivate
- Auth: HTTP bearer
Response
OK
Example response
{
"id": 5,
"email": "thomas.weber@acme.com",
"first_name": "Thomas",
"last_name": "Weber",
"name": "Thomas Weber",
"external_id": "EMP-001",
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2026-01-20T14:45:00Z",
"deactivated_at": null,
"last_active_at": "2026-01-21T08:15:00Z",
"workpath_url": "https://acme.workpath.com/users/5",
"status": "active",
"license": "standard",
"roles": [
"super_admin",
"coach"
],
"business_units": [
{
"id": 2,
"name": "ACME EMEA"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.