- スタート アップ ガイド
- 認証
- 範囲と権限
- プラットフォーム管理 API
ユーザーを削除する
Test Cloud (プライベート) でユーザーを削除するための API リファレンス。エンドポイント、要求フィールド、応答が含まれます。
Deletes multiple users from an organization, based on the users IDs. 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
スコープ
次のスコープが必要です。
- 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.
パス パラメーター
| パス パラメーター | データ型 | 説明 |
|---|---|---|
partitionGlobalId (必須) | 文字列 | ロボット アカウントを取得する対象の組織の ID です。 |
要求本文
要求本文には、組織から一括削除するユーザー ID のリストが含まれます。
{
"partitionGlobalId": "string",
"userIds": [
"string"
]
}
{
"partitionGlobalId": "string",
"userIds": [
"string"
]
}
応答
204 Success
指定したロボット アカウントが組織から削除されます。
要求の例
API 呼び出しの構築に必要な情報をすべて収集したとします。
- Your
{baseURL}is: https://{yourDomain}/{organizationName}/identity_ {access_token}は1234です (長さを考慮)。{partitionGlobalId}は3fa85f64-5717-4562-b3fc-2c963f66afa6です。- 削除するユーザーの ID は次のとおりです。
- Dolores Umbridge:
dol-2908 - Quirinus Quirrell:
qui-2609
- Dolores Umbridge:
呼び出しは次の例のようになります (cURL)。
curl --location --request DELETE 'https://{yourDomain}/{organizationName}/identity_/api/User' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json'
--data-raw '{
"partitionGlobalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"userIds": [
"dol-2908", "qui-2609"
]
}'
curl --location --request DELETE 'https://{yourDomain}/{organizationName}/identity_/api/User' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json'
--data-raw '{
"partitionGlobalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"userIds": [
"dol-2908", "qui-2609"
]
}'