Deleting a User
Use this API to delete a user from the eG Enterprise.
URL: http://<eG manager IP:port>/api/eg/orchestration/deleteuser
Method: POST
Content-Type: application/json
Parameters | Key values | Example |
---|---|---|
Headers |
managerurl: Base URL of the eG Manager i.e., http://<IP address of the eG console:Port> user: eG username or domain/eG username pwd: Base64 encoded password |
{ "userid":"john,kim,sarah" } |
Body |
Default: { "userid":"comma-separated list of User IDs" } |
Type | Code | Content |
---|---|---|
JSON |
200 |
{ "Succeed": "User(s) has/have been deleted successfully." } |
Type | Code | Content |
---|---|---|
JSON |
401 UNAUTHORIZED |
{ "Error": "One or more users do not exist." } |
Figure 1 : Deleting a User using Postman REST Client
Deleting a User using cURL
To delete a user through the REST API using cURL, the command should be specified in the following format:
curl --location --request POST "http://<eG Manager IP:Port>/api/eg/orchestration/deleteuser" -H "managerurl:http://<eG Manager IP:Port>" -H "user:<eG username or domain/eG username>" -H "pwd:Base64 encoded password" -H "Content-Type: application/json" --data-raw "{'userid':'comma-separated list of User IDs'}"
Figure 2 shows an example of deleting a user using cURL.