- Erste Schritte
- Authentication
- Scopes und Berechtigungen
- Plattformverwaltungs-APIs
- Abrufen von partitionGlobalId zur API-Verwendung
- Warnungen
- Get User
- Get Users
- Update User
- Bestimmten Benutzer löschen
- Benutzer löschen
Bestimmten Benutzer löschen
API-Referenz zum Löschen eines bestimmten Benutzers in Private Test Cloud, einschließlich Endpunkten, Anforderungsfeldern und Antworten.
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-Endpunkt
DELETE https://{yourDomain}/{organizationName}/identity_/api/User/{userId}
Scopes
Folgende Scopes sind erforderlich:
- PM.User
- PM.User.Write
Anforderungsheader
--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.
Pfadparameter
| Pfadparameter | Datentyp | Beschreibung |
|---|---|---|
userId (erforderlich) | String | Die ID des Benutzers, den Sie löschen möchten. |
Antworten
204 Erfolg
Der angegebene Benutzer wird aus der Organisation gelöscht.
Beispielanforderung
Angenommen, Sie haben alle Informationen gesammelt, die zum Erstellen des API-Aufrufs erforderlich sind.
- Your
{baseURL}is: https://{yourDomain}/{organizationName}/identity_ - Ihre
{access_token}ist:1234(aus Gründen der Länge). - Die Benutzer-ID, die Sie löschen möchten, ist
66-ss
Der Aufruf sollte dem folgenden Beispiel ähneln (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'