- スタート アップ ガイド
- 認証
- 範囲と権限
- プラットフォーム管理 API
特定のユーザーを削除する
Test Cloud (プライベート) で特定のユーザーを削除するための API リファレンス。エンドポイント、要求フィールド、応答が含まれます。
Deletes the specified user, based on the user ID. Supports both local and directory users.
This endpoint deletes both local and directory users; deleting a directory user also frees the license allocated to that user. For a local user that is linked to a directory account, the first delete request removes the local account but keeps the directory link: the user becomes a directory user and keeps its group memberships. A second delete request deletes the user. Use the category field returned by Get users to tell the two cases apart.
API エンドポイント
DELETE https://{yourDomain}/{organizationName}/identity_/api/User/{userId}
スコープ
次のスコープが必要です。
- PM.User
- PM.User.Write
要求ヘッダー
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
To obtain the {access_token}, make sure to authenticate through one of the methods described here.
パス パラメーター
| パス パラメーター | データ型 | 説明 |
|---|---|---|
userId (必須) | 文字列 | 削除するユーザーの ID です。 |
応答
204 Success
指定したユーザーが組織から削除されます。
要求の例
API 呼び出しの構築に必要な情報をすべて収集したとします。
- Your
{baseURL}is: https://{yourDomain}/{organizationName}/identity_ {access_token}は1234です (長さを考慮)。- 削除するユーザー ID は
66-ssです。
呼び出しは次の例のようになります (cURL)。
curl --location --request DELETE 'https://{yourDomain}/{organizationName}/identity_/api/User/66-ss' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json'
curl --location --request DELETE 'https://{yourDomain}/{organizationName}/identity_/api/User/66-ss' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json'