Skip to main content

Enable a user.

POST/api/v1/users/{user_id}/enableusers:admin

Activates a disabled account.

Scopeusers:admin (sensitive)
AsynchronousNo
MCP toolenable_user
Portal permissionschange_user_status

Parameters​

NameInTypeRequiredDescription
user_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Responses​

StatusDescriptionBody
200Success.application/json User or object
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

User​

FieldTypeRequiredDescription
departmentstring or nullRequiredThe department's name; null when none.
display_namestringRequired
emailstring or nullRequired
email_notificationboolean or nullRequiredNull without View Notification Preferences.
first_active_atstring (date-time) or nullRequiredThe first sign-in to this organisation; null when the person never signed in, without View User Activity, or when the sign-in service could not be read.
first_namestring or nullRequired
is_activebooleanRequired
is_externalbooleanRequired
is_non_billableboolean or nullRequiredTrue for a Docwize consultant, who is not billed as a user. Null without View Licenses, or when the consultant list could not be read.
is_verifiedboolean or nullRequiredTrue once the person accepted the invitation and verified the sign-in; false while the invitation is pending or the person has no sign-in. Null when the sign-in service could not be read (a warning says so).
last_active_atstring (date-time) or nullRequiredThe latest sign-in to this organisation; null under the same conditions as first_active_at.
organisation_idstring or nullRequired
surnamestring or nullRequired
user_idstringRequired
usernamestring or nullRequiredThe username and document-number prefix.