UiPath Documentation
private-test-cloud
2.2610
true
Private Test Cloud-API-Leitfaden

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.

Hinweis:

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'
Hinweis:

To obtain the {access_token}, make sure to authenticate through one of the methods described here.

Pfadparameter​

PfadparameterDatentypBeschreibung
userId (erforderlich)StringDie 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'
  • API-Endpunkt​
  • Scopes​
  • Anforderungsheader​
  • Pfadparameter​
  • Antworten​
  • 204 Erfolg​
  • Beispielanforderung​

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support(opens in new window)

Möchten Sie lernen? UiPath Academy(opens in new window)

Haben Sie Fragen? UiPath-Forum(opens in new window)

Auf dem neuesten Stand bleiben