I am trying to create the user through owncloud User Provisioning API, when trying to request the below api:
curl -X POST http://admin:secret@localhost/owncloud/ocs/v1.php/cloud/users -d userid="user1" -d password="user1"
I get the response:
<?xml version="1.0"?>
<ocs>
<meta>
<status>failure</status>
<statuscode>997</statuscode>
<message>Unauthorised</message>
</meta>
<data/>
</ocs>