メインコンテンツまでスキップ

Disable a user.

POST/api/v1/users/{user_id}/disableusers:admin
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Deactivates the account; its access stops until it is enabled again. Deactivating an active external user also requires Deactivate External Users. You cannot disable your own account.

スコープusers:admin (機密性の高いスコープ)
非同期いいえ
MCP ツールdisable_user
Portal の権限change_user_status

パラメーター​

名前場所型必須説明
user_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

応答​

ステータス説明本文
200Success.application/json User または 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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

User​

フィールド型必須説明
departmentstring または null必須The department's name; null when none.
display_namestring必須
emailstring または null必須
email_notificationboolean または null必須Null without View Notification Preferences.
first_active_atstring (date-time) または null必須The 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 または null必須
is_activeboolean必須
is_externalboolean必須
is_non_billableboolean または null必須True 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 または null必須True 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) または null必須The latest sign-in to this organisation; null under the same conditions as first_active_at.
organisation_idstring または null必須
surnamestring または null必須
user_idstring必須
usernamestring または null必須The username and document-number prefix.