[owncloud-devel] User Provisioning API - changing user info

Arman Khalatyan arm2arm at gmail.com
Fri Nov 20 20:24:36 GMT 2015


There is a typo in documentation  you should use:
curl "https://admin:admin@localhost/owncloud/ocs/v1.php/cloud/users/juser"
-d key="display" -d value="Joe User" -k
Am 20.11.2015 20:21 schrieb "coreymj" <reg at pathrider.ca>:

> Hi All,
>
> I'm trying to change user information via the User Provisioning API on our
> OwnCloud 8.1.4-12.1 server, running on Centos7 x64.  The call is successful
> (i.e. no errors), but the user's display name, email, etc., do not change.
>
> I wrote the code first in PHP, where it doesn't work, but I am able to
> replicate this in cUrl from the command line:
>
> $ curl "https://admin:admin@localhost
> /owncloud/ocs/v1.php/cloud/users/juser"
> -d key="display",value="Joe User" -k
>
> Nothing is returned and nothing is changed that I can see in the ownCloud
> GUI.  I have verified that I have all the connectivity bits set up:
>
> $ curl "https://admin:admin@localhost/owncloud/ocs/v1.php/cloud/users" -k
>
> <?xml version="1.0"?>
> <ocs>
>  <meta>
>   <status>ok</status>
>   <statuscode>100</statuscode>
>   <message/>
>  </meta>
>  <data>
>   <users>
>    <element>admin</element>
>    <element>juser</element>
>   </users>
>  </data>
> </ocs>
>
> Any advice would be appreciated!
>
> Thanks!
> Corey.
>
>
>
> --
> View this message in context:
> http://owncloud.10557.n7.nabble.com/User-Provisioning-API-changing-user-info-tp16112.html
> Sent from the Developers mailing list archive at Nabble.com.
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20151120/da926ef4/attachment.html>


More information about the Devel mailing list