Hitting a brick wall trying to onboard our team into Barracuda CloudGen Firewall. I'm scripting the user import via their REST API, but every attempt bombs with a generic HTTP 500. The docs are... less than helpful on this specific error.
Here's the core of my script (Python, using `requests`). I'm masking the domain and using a service account with full admin rights for this test.
```python
import requests
import json
url = "https:///api/v1/objects/user"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer "
}
payload = [
{
"name": "test.user1",
"email": "test.user1@example.com",
"group": "TeamUsers",
"status": "active"
}
]
response = requests.post(url, headers=headers, data=json.dumps(payload))
print(response.status_code)
print(response.text)
```
The response is always:
```
500
{"error":"Internal server error"}
```
What I've already verified:
* The token works for other `GET` operations (like listing existing groups).
* The user group "TeamUsers" exists.
* Tried with a single user object (as above) and a smaller array.
* Checked for any weird characters in the `name` field.
Has anyone successfully done a bulk user import via this API? I'm wondering if:
* The payload structure is wrong for bulk operations.
* There's a hidden size limit, even for one record.
* The `email` field is problematic if the user doesn't exist in our external directory yet.
Any logs on the appliance side I should be checking? I'm used to Prometheus/Grafana where I can at least see metrics for request failures, but here I'm flying blind.
- away