Delete Admin User
DELETE/adminUsers/:userId
Deletes an admin or auditor user using the specified ID.
Note: This request deletes an admin and removes them as a user from the ZIA Admin Portal. To delete the admin privileges for a user while retaining them as a regular user, use the POST /adminUsers/{userId}/convertToUser request.
Sample Request (Python):
import http.client
import json
conn = http.client.HTTPSConnection("HOSTNAME")
headers = {
'content-type': "application/json",
'cache-control': "no-cache",
'cookie': "JSESSIONID=xxxxxxx"
}
conn.request("DELETE", "/api/v1/adminUsers/6794036", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Sample Response:
204 No Content
Request
Responses
- 204
Successful Operation