Hi,
I'm wondering if it's possible to upload many users to my Nuxeo instance by using Curl on a local JSON file. It's certainly possible for a single user, as I've already attempted.
' curl -u "Administrator:Administrator" -H "Content-Type: application/json" -d @/home/Desktop/BulkUserImports.json http://localhost:8080/nuxeo/api/v1/user '
I get the following exception with the JSON file below -
{"entity-type":"exception","code":"org.nuxeo.ecm.core.io.registry.MarshallingException","status":500,"message":"Json does not contain an object as expected"}
Is my JSON file not formatted properly for multiple user objects?
---- Begin JSON ----
[
{
"entity-type": "user",
"properties":
{
"username": "fourthUser",
"lastName": "User",
"firstName": "Fourth"
}
},
{
"entity-type": "user",
"properties":
{
"username": "secondUser",
"lastName": "User",
"firstName": "Second"
}
}
]
Thank you!