Remove user from a zone.

Remove user assignment from zone. This action has no effect if the user is a global-admin.

SecuritybearerAuth
Request
path Parameters
accountId
required
string <uuid>

Account UUID to retrieve users for.

zoneId
required
string <uuid>

UUID for the specified zone

userId
required
string <uuid>

UUID for the specified user

Responses
204

Successful Operation - No Content

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

delete/accounts/{accountId}/zones/{zoneId}/users/{userId}
Request samples
$apiKey = 'your_automox_api_key' $headers = @{
  "Authorization" = "Bearer $apiKey"
  "Content-Type" = "application/json"
  }
$url = "https://console.automox.com/api/accounts/{accountId}/zones/{zoneId}/users/{userId}" $response = (Invoke-WebRequest -Method Delete -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "errors": [
    • "string"
    ]
}