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

Replace the permissions granted to a user directly.

POST/api/v1/users/{user_id}/direct-permissions/replacepermissions:admin
注記

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

Replaces the whole set of the user's direct grants; permissions the user holds through a group's set are unaffected. Adding grants requires Grant User Direct Permissions and current possession of each added permission or Delegate Permissions Beyond Own Access, including when changing your own grants. Removing grants requires Revoke User Direct Permissions. An empty set removes every direct grant.

スコープpermissions:admin (機密性の高いスコープ)
非同期いいえ
MCP ツールreplace_user_direct_permissions

パラメーター​

名前場所型必須説明
user_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonDirectPermissionReplaceInput

応答​

ステータス説明本文
200Success.application/json DirectPermissionSet または object
400invalid_version, malformed_jsonapplication/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
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

DirectPermissionReplaceInput​

フィールド型必須説明
permission_idsstring の配列必須The complete set of permission_id keys; each appears once.

DirectPermissionSet​

フィールド型必須説明
itemsPermission の配列必須

Permission​

フィールド型必須説明
permissionstring必須The permission's name, as the Portal shows it.
permission_idstring必須The permission's stable key.